Removed the path.join on srcDir and targetPath in order to fix absolute path
This commit is contained in:
committed by
Artur
parent
b55b3344de
commit
a7fd499098
@@ -48,7 +48,7 @@ export class GitVersionTool extends DotnetTool implements IGitVersionTool {
|
|||||||
workDir = srcDir
|
workDir = srcDir
|
||||||
} else {
|
} else {
|
||||||
if (this.buildAgent.directoryExists(targetPath)) {
|
if (this.buildAgent.directoryExists(targetPath)) {
|
||||||
workDir = path.join(srcDir, targetPath)
|
workDir = targetPath
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Directory not found at ' + targetPath)
|
throw new Error('Directory not found at ' + targetPath)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user