mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix(gitFs): try/catch deletes
This commit is contained in:
parent
2714104f47
commit
bab94337eb
1 changed files with 9 additions and 1 deletions
|
@ -328,7 +328,15 @@ class Storage {
|
|||
fileNames.unshift('-f');
|
||||
}
|
||||
if (fileNames.length) await git.add(fileNames);
|
||||
if (deleted.length) await git.rm(deleted);
|
||||
if (deleted.length) {
|
||||
for (const f of deleted) {
|
||||
try {
|
||||
await git.rm([f]);
|
||||
} catch (err) {
|
||||
logger.debug({ err }, 'Cannot delete ' + f);
|
||||
}
|
||||
}
|
||||
}
|
||||
await git.commit(message);
|
||||
await git.push([
|
||||
'origin',
|
||||
|
|
Loading…
Reference in a new issue