Permalink
Browse files

Added resolve-path in order to support home directory that has spaces…

… in the path


Closes #24
  • Loading branch information...
1 parent 9376686 commit d510787faee6964e4c199b5e3d9914c555a8d3a5 @bradleylandis bradleylandis committed with Dec 21, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 GitUtils.ps1
View
@@ -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.