fix(dev-infra): run git fetch in quiet mode (#39068)

Runs git fetch with the -q flag during fetch while comparing the master and
g3 branches.

PR Close #39068
This commit is contained in:
Joey Perrott 2020-09-30 13:23:13 -07:00
parent fb12c617a4
commit 21213e1531
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ export async function printG3Comparison(git: GitClient) {
/** Url of the ref for fetching master and g3 branches. */ /** Url of the ref for fetching master and g3 branches. */
const refUrl = `https://github.com/${git.remoteConfig.owner}/${git.remoteConfig.name}.git`; const refUrl = `https://github.com/${git.remoteConfig.owner}/${git.remoteConfig.name}.git`;
/** The result fo the fetch command. */ /** The result fo the fetch command. */
const fetchResult = git.runGraceful(['fetch', refUrl, `master:${masterRef}`, `g3:${g3Ref}`]); const fetchResult =
git.runGraceful(['fetch', '-q', refUrl, `master:${masterRef}`, `g3:${g3Ref}`]);
// If the upstream repository does not have a g3 branch to compare to, skip the comparison. // If the upstream repository does not have a g3 branch to compare to, skip the comparison.
if (fetchResult.status !== 0) { if (fetchResult.status !== 0) {