Skip to content
Snippets Groups Projects
Unverified Commit 9ba74428 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

fix(git): gracefully handle remote ref lock error (#7809)

parent 37e3f971
No related branches found
No related tags found
No related merge requests found
...@@ -659,6 +659,10 @@ export async function commitFiles({ ...@@ -659,6 +659,10 @@ export async function commitFiles({
); );
return null; return null;
} }
if (err.message.includes('remote: error: cannot lock ref')) {
logger.error({ err }, 'Error committing files.');
return null;
}
logger.debug({ err }, 'Error committing files'); logger.debug({ err }, 'Error committing files');
throw new Error(REPOSITORY_CHANGED); throw new Error(REPOSITORY_CHANGED);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment