Skip to content
Snippets Groups Projects
Commit 159a0efc authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: retrieve baseCommitSha before comparing in mirrorMode

parent 13609b73
No related branches found
No related tags found
No related merge requests found
...@@ -219,6 +219,7 @@ async function initRepo({ ...@@ -219,6 +219,7 @@ async function initRepo({
logger.debug('Parent sha is ' + parentSha); logger.debug('Parent sha is ' + parentSha);
// This is a lovely "hack" by GitHub that lets us force update our fork's master // This is a lovely "hack" by GitHub that lets us force update our fork's master
// with the base commit from the parent repository // with the base commit from the parent repository
config.baseCommitSha = await getBaseCommitSHA();
if (parentSha !== config.baseCommitSHA) { if (parentSha !== config.baseCommitSHA) {
logger.info('Updating fork default branch'); logger.info('Updating fork default branch');
await get.patch( await get.patch(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment