don't make extra fetches
This commit is contained in:
parent
2bc1a89e14
commit
ae9e705e16
@ -597,7 +597,6 @@ const util = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
shouldUpdateChromium: (chromiumRef = config.getProjectRef('chrome')) => {
|
shouldUpdateChromium: (chromiumRef = config.getProjectRef('chrome')) => {
|
||||||
util.runGit(config.srcDir, ['fetch', '--all', '--tags'])
|
|
||||||
const headSHA = util.runGit(config.srcDir, ['rev-parse', 'HEAD'], true)
|
const headSHA = util.runGit(config.srcDir, ['rev-parse', 'HEAD'], true)
|
||||||
const targetSHA = util.runGit(config.srcDir, ['rev-parse', chromiumRef], true)
|
const targetSHA = util.runGit(config.srcDir, ['rev-parse', chromiumRef], true)
|
||||||
const needsUpdate = ((targetSHA !== headSHA) || (!headSHA && !targetSHA))
|
const needsUpdate = ((targetSHA !== headSHA) || (!headSHA && !targetSHA))
|
||||||
@ -623,7 +622,6 @@ const util = {
|
|||||||
if (!braveCoreRef) {
|
if (!braveCoreRef) {
|
||||||
// Use current branch (sync will then pull latest) or current exact hash
|
// Use current branch (sync will then pull latest) or current exact hash
|
||||||
// if we're not in a branch.
|
// if we're not in a branch.
|
||||||
util.runGit(config.braveCoreDir, ['fetch', '--all', '--tags'])
|
|
||||||
braveCoreRef = util.runGit(config.braveCoreDir, ['rev-parse', '--abbrev-ref', 'HEAD'])
|
braveCoreRef = util.runGit(config.braveCoreDir, ['rev-parse', '--abbrev-ref', 'HEAD'])
|
||||||
if (braveCoreRef === 'HEAD') {
|
if (braveCoreRef === 'HEAD') {
|
||||||
// get the rev hash if we're not in a branch
|
// get the rev hash if we're not in a branch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user