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:
Joey Perrott
2021-07-15 16:35:57 -07:00
committed by Alex Rickabaugh
parent fd92a3e87f
commit 96d31d8c9f
3 changed files with 12 additions and 12 deletions
@@ -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._;