File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ function Get-GitStatus($gitDir = (Get-GitDirectory)) {
188
188
$filesUnmerged = New-Object System.Collections.Generic.List[string ]
189
189
$stashCount = 0
190
190
191
- if ($settings.EnableFileStatus -and ! $ (InDotGitOrBareRepoDir) -and ! $ (InDisabledRepository)) {
191
+ if ($settings.EnableFileStatus -and ! $ (InDotGitOrBareRepoDir $gitDir ) -and ! $ (InDisabledRepository)) {
192
192
if ($settings.EnableFileStatusFromCache -eq $null ) {
193
193
$settings.EnableFileStatusFromCache = (Get-Module GitStatusCachePoshClient) -ne $null
194
194
}
Original file line number Diff line number Diff line change 3
3
Describe ' Get-GitStatus Tests' {
4
4
Context ' Get-GitStatus Working Directory Tests' {
5
5
BeforeAll {
6
+ Set-Location $PSScriptRoot
7
+
6
8
function global :git {
7
9
$cmdline = " $args "
8
10
switch ($cmdline ) {
You can’t perform that action at this time.
0 commit comments