From a7fd499098a65e6c4d43c955072dfa80d04b37fc Mon Sep 17 00:00:00 2001 From: Benjamin Van Brussel Date: Fri, 13 Nov 2020 13:45:49 +0100 Subject: [PATCH] Removed the path.join on srcDir and targetPath in order to fix absolute path --- src/tools/gitversion/tool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/gitversion/tool.ts b/src/tools/gitversion/tool.ts index 3b01873..7080549 100644 --- a/src/tools/gitversion/tool.ts +++ b/src/tools/gitversion/tool.ts @@ -48,7 +48,7 @@ export class GitVersionTool extends DotnetTool implements IGitVersionTool { workDir = srcDir } else { if (this.buildAgent.directoryExists(targetPath)) { - workDir = path.join(srcDir, targetPath) + workDir = targetPath } else { throw new Error('Directory not found at ' + targetPath) }