Skip to content

Commit

Permalink
Fix Pester test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkeithhill committed Jan 25, 2017
1 parent a27044e commit a1bb28f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GitUtils.ps1
Expand Up @@ -188,7 +188,7 @@ function Get-GitStatus($gitDir = (Get-GitDirectory)) {
$filesUnmerged = New-Object System.Collections.Generic.List[string]
$stashCount = 0

if($settings.EnableFileStatus -and !$(InDotGitOrBareRepoDir) -and !$(InDisabledRepository)) {
if($settings.EnableFileStatus -and !$(InDotGitOrBareRepoDir $gitDir) -and !$(InDisabledRepository)) {
if ($settings.EnableFileStatusFromCache -eq $null) {
$settings.EnableFileStatusFromCache = (Get-Module GitStatusCachePoshClient) -ne $null
}
Expand Down
2 changes: 2 additions & 0 deletions test/Get-GitStatus.Tests.ps1
Expand Up @@ -3,6 +3,8 @@
Describe 'Get-GitStatus Tests' {
Context 'Get-GitStatus Working Directory Tests' {
BeforeAll {
Set-Location $PSScriptRoot

function global:git {
$cmdline = "$args"
switch ($cmdline) {
Expand Down

0 comments on commit a1bb28f

Please sign in to comment.