Skip to content

Commit

Permalink
use the targetDirectory based on repo root
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Feb 9, 2020
1 parent 571cacf commit a0d003d
Show file tree
Hide file tree
Showing 16 changed files with 20,590 additions and 146 deletions.
12 changes: 3 additions & 9 deletions dist/azure/gitreleasemanager/close/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/azure/gitreleasemanager/create/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/azure/gitreleasemanager/discard/bundle.js

Large diffs are not rendered by default.

80 changes: 55 additions & 25 deletions dist/azure/gitreleasemanager/open/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/azure/gitreleasemanager/setup/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/github/gitreleasemanager/close/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/github/gitreleasemanager/create/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/github/gitreleasemanager/discard/bundle.js

Large diffs are not rendered by default.

12,567 changes: 12,567 additions & 0 deletions dist/github/gitreleasemanager/open/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/github/gitreleasemanager/setup/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/mock/gitreleasemanager/close/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/mock/gitreleasemanager/create/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/mock/gitreleasemanager/discard/bundle.js

Large diffs are not rendered by default.

7,928 changes: 7,928 additions & 0 deletions dist/mock/gitreleasemanager/open/bundle.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions dist/mock/gitreleasemanager/setup/bundle.js

Large diffs are not rendered by default.

17 changes: 4 additions & 13 deletions src/tools/gitreleasemanager/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export class GitReleaseManagerTool extends DotnetTool implements IGitReleaseMana
args.push("--repository", settings.repository);
args.push("--token", settings.token);

settings.targetDirectory = this.getRepoDir(settings.targetDirectory);

args.push("--targetDirectory", settings.targetDirectory);

return args;
}

Expand All @@ -75,9 +79,6 @@ export class GitReleaseManagerTool extends DotnetTool implements IGitReleaseMana
if (settings.milestone) {
args.push("--milestone", settings.milestone);
}
settings.targetDirectory = this.getRepoDir(settings.targetDirectory);

args.push("--targetDirectory", settings.targetDirectory);

return args;
}
Expand All @@ -88,9 +89,6 @@ export class GitReleaseManagerTool extends DotnetTool implements IGitReleaseMana
if (settings.milestone) {
args.push("--milestone", settings.milestone);
}
settings.targetDirectory = this.getRepoDir(settings.targetDirectory);

args.push("--targetDirectory", settings.targetDirectory);

return args;
}
Expand All @@ -101,9 +99,6 @@ export class GitReleaseManagerTool extends DotnetTool implements IGitReleaseMana
if (settings.milestone) {
args.push("--milestone", settings.milestone);
}
settings.targetDirectory = this.getRepoDir(settings.targetDirectory);

args.push("--targetDirectory", settings.targetDirectory);

return args;
}
Expand All @@ -121,10 +116,6 @@ export class GitReleaseManagerTool extends DotnetTool implements IGitReleaseMana
args.push("--targetcommitish", settings.commit);
}

settings.targetDirectory = this.getRepoDir(settings.targetDirectory);

args.push("--targetDirectory", settings.targetDirectory);

if (settings.inputFileName) {
if (this.buildAgent.fileExists(settings.inputFileName)) {
args.push("--inputFilePath", settings.inputFileName);
Expand Down

0 comments on commit a0d003d

Please sign in to comment.