Skip to content

Commit

Permalink
Don't wait for pageant
Browse files Browse the repository at this point in the history
It's supposed to be a background service style process, so this otherwise waits indefinitely.
Suspect this is true for other `$sshAgent`s too (see a few lines below) but have no test cases so haven't changed it.
  • Loading branch information
GrahamTheCoder committed Aug 26, 2015
1 parent 99021d4 commit f28bb54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GitUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function Start-SshAgent([switch]$Quiet) {
$pageant = Get-Command pageant -TotalCount 1 -Erroraction SilentlyContinue
$pageant = if ($pageant) {$pageant} else {Guess-Pageant}
if (!$pageant) { Write-Warning "Could not find Pageant."; return }
& $pageant
Start-Process -NoNewWindow $pageant
} else {
$sshAgent = Get-Command ssh-agent -TotalCount 1 -ErrorAction SilentlyContinue
$sshAgent = if ($sshAgent) {$sshAgent} else {Guess-Ssh('ssh-agent')}
Expand Down

0 comments on commit f28bb54

Please sign in to comment.