fix: should avoid index lock
This commit is contained in:
parent
0e016f41d3
commit
1d6848cd17
@ -105,9 +105,9 @@ export async function pushNewFiles(files: File[] = []): Promise<any> {
|
|||||||
files.map(async ({ filename, data }) => {
|
files.map(async ({ filename, data }) => {
|
||||||
await fsp.writeFile(filename, data);
|
await fsp.writeFile(filename, data);
|
||||||
await git.add(filename);
|
await git.add(filename);
|
||||||
await git.commit(`chore(${filename}): updated ${filename}`);
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await git.commit(`chore(updates): updated entries in files`);
|
||||||
await git.push();
|
await git.push();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user