don't make extra fetches

This commit is contained in:
bridiver 2020-06-02 08:42:36 -07:00
parent 2bc1a89e14
commit ae9e705e16

View File

@ -597,7 +597,6 @@ const util = {
},
shouldUpdateChromium: (chromiumRef = config.getProjectRef('chrome')) => {
util.runGit(config.srcDir, ['fetch', '--all', '--tags'])
const headSHA = util.runGit(config.srcDir, ['rev-parse', 'HEAD'], true)
const targetSHA = util.runGit(config.srcDir, ['rev-parse', chromiumRef], true)
const needsUpdate = ((targetSHA !== headSHA) || (!headSHA && !targetSHA))
@ -623,7 +622,6 @@ const util = {
if (!braveCoreRef) {
// Use current branch (sync will then pull latest) or current exact hash
// if we're not in a branch.
util.runGit(config.braveCoreDir, ['fetch', '--all', '--tags'])
braveCoreRef = util.runGit(config.braveCoreDir, ['rev-parse', '--abbrev-ref', 'HEAD'])
if (braveCoreRef === 'HEAD') {
// get the rev hash if we're not in a branch