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

fix(gitFs): force renovate.json add

parent 9683265d
Branches
Tags 15.11.2
No related merge requests found
...@@ -291,7 +291,12 @@ class Storage { ...@@ -291,7 +291,12 @@ class Storage {
for (const file of files) { for (const file of files) {
await fs.writeFile(join(cwd, file.name), Buffer.from(file.contents)); await fs.writeFile(join(cwd, file.name), Buffer.from(file.contents));
} }
await git.add(files.map(f => f.name)); const fileNames = files.map(f => f.name);
// istanbul ignore if
if (fileNames.length === 1 && fileNames[0] === 'renovate.json') {
fileNames.shift('-f');
}
await git.add(fileNames);
await git.commit(message); await git.commit(message);
await git.push([ await git.push([
'origin', 'origin',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment