fix(dev-infra): prevent verbose messaging of git checkout and commit for release (#42871)
Prevent logging verbose messages to the output for commit and checkout during the release process. PR Close #42871
This commit is contained in:
committed by
Alex Rickabaugh
parent
fd92a3e87f
commit
96d31d8c9f
@@ -107,7 +107,7 @@ export class VirtualGitClient extends AuthenticatedGitClient {
|
||||
|
||||
/** Handler for the `git push` command. */
|
||||
private _push(args: string[]) {
|
||||
const [repoUrl, refspec] = parseArgs(args)._;
|
||||
const [repoUrl, refspec] = parseArgs(args, {boolean: ['q']})._;
|
||||
const ref = this._unwrapRefspec(refspec);
|
||||
const name = ref.destination || ref.source;
|
||||
const existingPush =
|
||||
@@ -161,7 +161,7 @@ export class VirtualGitClient extends AuthenticatedGitClient {
|
||||
|
||||
/** Handler for the `git checkout` command. */
|
||||
private _checkout(rawArgs: string[]) {
|
||||
const args = parseArgs(rawArgs, {boolean: ['detach', 'B']});
|
||||
const args = parseArgs(rawArgs, {boolean: ['detach', 'B', 'q']});
|
||||
const createBranch = args['B'];
|
||||
const detached = args['detach'];
|
||||
const [target] = args._;
|
||||
|
||||
Reference in New Issue
Block a user