Skip to content

Commit

Permalink
Merge pull request #478 from mikesigs/patch-2
Browse files Browse the repository at this point in the history
Pass "git.exe" instead of "git" to Get-Command
  • Loading branch information
dahlbyk authored Jul 10, 2017
2 parents a46032e + e18c440 commit 8bfcf1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function Find-Pageant() {
# Attempt to guess $program's location. For ssh-agent/ssh-add.
function Find-Ssh($program = 'ssh-agent') {
Write-Verbose "$program not in path. Trying to guess location."
$gitItem = Get-Command git -Erroraction SilentlyContinue | Get-Item
$gitItem = Get-Command git.exe -Erroraction SilentlyContinue | Get-Item
if ($null -eq $gitItem) {
Write-Warning 'git not in path'
return
Expand Down

0 comments on commit 8bfcf1e

Please sign in to comment.