fix: should avoid index lock

This commit is contained in:
Simone Corsi 2021-10-14 08:57:35 +02:00
parent 0e016f41d3
commit 1d6848cd17

View File

@ -105,9 +105,9 @@ export async function pushNewFiles(files: File[] = []): Promise<any> {
files.map(async ({ filename, data }) => {
await fsp.writeFile(filename, data);
await git.add(filename);
await git.commit(`chore(${filename}): updated ${filename}`);
})
);
await git.commit(`chore(updates): updated entries in files`);
await git.push();
}