Skip to content

Commit 1e0568b

Browse files
authored
Merge branch 'master' into feature/noNormalize
2 parents e7bf119 + c014917 commit 1e0568b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/GitVersionTfsTask/GitVersion.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export class GitVersionTask {
77
execOptions: tr.IExecOptions;
88

99
preferBundledVersion: boolean;
10+
configFilePathSupplied: boolean;
1011
configFilePath: string;
1112
updateAssemblyInfo: boolean;
1213

@@ -21,7 +22,8 @@ export class GitVersionTask {
2122

2223
constructor() {
2324
this.preferBundledVersion = tl.getBoolInput('preferBundledVersion') || true;
24-
this.configFilePath = tl.getPathInput('configFilePath');
25+
this.configFilePathSupplied = tl.filePathSupplied('configFilePath');
26+
this.configFilePath = tl.getPathInput('configFilePath', false, true);
2527
this.updateAssemblyInfo = tl.getBoolInput('updateAssemblyInfo');
2628

2729
this.updateAssemblyInfoFilename = tl.getInput('updateAssemblyInfoFilename');
@@ -58,7 +60,7 @@ export class GitVersionTask {
5860
"buildserver",
5961
"/nofetch"]);
6062

61-
if (this.configFilePath) {
63+
if (this.configFilePathSupplied && this.configFilePath) {
6264
exe.arg(["/config", this.configFilePath]);
6365
}
6466

0 commit comments

Comments
 (0)