Skip to content

Commit e97abbf

Browse files
committed
refactor(arguments): standardize working directory to absolute path
1 parent 76d27c0 commit e97abbf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/GitVersion.App/Arguments.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ public GitVersionOptions ToOptions()
9999
var workingDirectory = this.TargetPath?.TrimEnd('/', '\\');
100100
if (workingDirectory != null)
101101
{
102-
gitVersionOptions.WorkingDirectory = workingDirectory;
102+
var absolutePath = Path.GetFullPath(workingDirectory);
103+
gitVersionOptions.WorkingDirectory = absolutePath;
103104
}
104105

105106
return gitVersionOptions;

0 commit comments

Comments
 (0)