Skip to content

Commit

Permalink
Removed the path.join on srcDir and targetPath in order to fix absolu…
Browse files Browse the repository at this point in the history
…te path
  • Loading branch information
benvbr authored and arturcic committed Nov 20, 2020
1 parent b55b334 commit a7fd499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/gitversion/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit a7fd499

Please sign in to comment.