File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -464,14 +464,21 @@ U test/Unmerged.Tests.ps1
464
464
$status.HasUntracked | Should - Be $false
465
465
$status.HasWorking | Should - Be $false
466
466
$status.Working.Added.Count | Should - Be 0
467
+
468
+ Set-Location " $repoPath /.git/refs" - ErrorAction Stop
469
+
470
+ $status = Get-GitStatus
471
+ $status.HasUntracked | Should - Be $false
472
+ $status.HasWorking | Should - Be $false
473
+ $status.Working.Added.Count | Should - Be 0
467
474
}
468
475
}
469
476
470
477
Context ' In .github' {
471
478
BeforeEach {
472
479
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute (' PSUseDeclaredVarsMoreThanAssigments' , ' ' )]
473
480
$repoPath = NewGitTempRepo
474
- mkdir " $repoPath /.github"
481
+ New-Item - Type Directory - Force " $repoPath /.github/workflows "
475
482
}
476
483
AfterEach {
477
484
Set-Location $PSScriptRoot
@@ -492,6 +499,13 @@ U test/Unmerged.Tests.ps1
492
499
$status.HasUntracked | Should - Be $true
493
500
$status.HasWorking | Should - Be $true
494
501
$status.Working.Added.Count | Should - Be 1
502
+
503
+ Set-Location " $repoPath /.github/workflows" - ErrorAction Stop
504
+
505
+ $status = Get-GitStatus
506
+ $status.HasUntracked | Should - Be $true
507
+ $status.HasWorking | Should - Be $true
508
+ $status.Working.Added.Count | Should - Be 1
495
509
}
496
510
}
497
511
}
You can’t perform that action at this time.
0 commit comments