Skip to content
Snippets Groups Projects
Commit bb15977e authored by Michael Kriese's avatar Michael Kriese Committed by Rhys Arkins
Browse files

fix(gitFs): set explicit remote branch (#3229)

This pr fixes the windows specific git bug by setting the remove branch name explicitly when pushing.

Closes #3204
parent 20a53ba7
Branches
Tags 14.18.14
No related merge requests found
......@@ -271,7 +271,12 @@ class Storage {
}
await git.add(files.map(f => f.name));
await git.commit(message);
await git.push(['origin', branchName, '--force']);
await git.push([
'origin',
`${branchName}:${branchName}`,
'--force',
'-u',
]);
} catch (err) /* istanbul ignore next */ {
logger.debug({ err }, 'Error commiting files');
if (err.message.includes('[remote rejected]')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment