Skip to content

Commit

Permalink
Merge pull request dahlbyk#16 from gliptak/allowothergit
Browse files Browse the repository at this point in the history
Allow other git (like cygwin)
  • Loading branch information
dahlbyk committed Aug 24, 2011
2 parents da37edf + c4cd85c commit 34e62d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CheckVersion.ps1
Expand Up @@ -4,9 +4,9 @@ if (!(Get-Command git -TotalCount 1 -ErrorAction SilentlyContinue)) {
return
}
$version = git --version 2> $null
if($version -notlike 'git version 1.7.*.msysgit.*') {
Write-Warning "posh-git requires msysgit version 1.7. You have $version."
if($version -notlike 'git version 1.7.*') {
Write-Warning "posh-git requires git version 1.7.x You have $version."
$false
} else {
$true
}
}

0 comments on commit 34e62d5

Please sign in to comment.