-
-
Notifications
You must be signed in to change notification settings - Fork 177
Closed
Description
I have a PSDrive for my source repositories (e.g. Repos:). But scripts like Get-CommitId.ps1 use the $PWD or something without regard for expanding the actual file system path, and fails like so:
PS Repos:\Engine
[dev/heaths/bug241684] > .\packages\Nerdbank.GitVersioning.1.4.41\tools\Get-CommitId.ps1 1.1.22
New-Object : Exception calling ".ctor" with "2" argument(s): "Path 'Repos:\Engine' doesn't point at a valid Git
repository or workdir."
At C:\Users\heaths\Source\Repos\Engine\packages\Nerdbank.GitVersioning.1.4.41\tools\Get-CommitId.ps1:46 char:9
+ $repo = New-Object LibGit2Sharp.Repository($GitPath)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
You cannot call a method on a null-valued expression.
At C:\Users\heaths\Source\Repos\Engine\packages\Nerdbank.GitVersioning.1.4.41\tools\Get-CommitId.ps1:51 char:5
+ $repo.Dispose()
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "GetCommitsFromVersion" with "3" argument(s): "Value cannot be null. Parameter name: repo"
At C:\Users\heaths\Source\Repos\Engine\packages\Nerdbank.GitVersioning.1.4.41\tools\Get-CommitId.ps1:48 char:5
+ $commit = [NerdBank.GitVersioning.GitExtensions]::GetCommitsFromV ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException
Metadata
Metadata
Assignees
Labels
No labels