Skip to content

Commit

Permalink
Added resolve-path in order to support home directory that has spaces…
Browse files Browse the repository at this point in the history
… in the path

Closes dahlbyk#24
  • Loading branch information
bradleylandis authored and dahlbyk committed Dec 21, 2011
1 parent 9376686 commit d510787
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GitUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -220,5 +220,7 @@ function Start-SshAgent([switch]$Quiet) {
$sshAdd = Get-Command ssh-add -TotalCount 1 -ErrorAction SilentlyContinue
if (!$sshAdd) { Write-Warning 'Could not find ssh-add'; return }

& $sshAdd
$sshPath = resolve-path ~/.ssh/id_rsa

& $sshAdd $sshPath
}

0 comments on commit d510787

Please sign in to comment.