Removed the path.join on srcDir and targetPath in order to fix absolute path

This commit is contained in:
Benjamin Van Brussel
2020-11-13 13:45:49 +01:00
committed by Artur
parent b55b3344de
commit a7fd499098

View File

@@ -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)
}