%HOMEPATH% Posh-Git error in Powershell, in ConEmu on Windows 7 64-bit

Posted by atwright on Super User See other posts from Super User or by atwright
Published on 2013-10-19T15:04:28Z Indexed on 2013/10/19 16:00 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

I am always getting the following error in Posh-Git in Powershell, in ConEmu on Windows 7 64-bit:

Resolve-Path : Cannot find path 'C:\wamp\www\MobileApps\Backbone\%HOMEPATH%' because it
does not exist.
At D:\Users\Andy\Documents\WindowsPowerShell\Modules\posh-git\GitUtils.ps1:265 char:13
+     $home = Resolve-Path (Invoke-NullCoalescing $Env:HOME ~)
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\wamp\www\Mob...bone\%HOMEPATH%:String)
   [Resolve-Path], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathComma
   nd

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At D:\Users\Andy\Documents\WindowsPowerShell\Modules\posh-git\GitUtils.ps1:266 char:29
+     Resolve-Path (Join-Path $home ".ssh\$File") -ErrorAction SilentlyContinue 2> ...
+                             ~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationExc
   eption
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Po
   werShell.Commands.JoinPathCommand

Can anybody advise what might be wrong?

© Super User or respective owner

Related posts about windows-7

Related posts about 64-bit