wasm-git
wasm-git copied to clipboard
`could not remove directory` error during branch removal
Hello, @petersalomonsen,
First of all, I’m really impressed by the wasm-git library, good job!
I recently encountered an issue while working with the library, and I’m not sure how to handle it. It occurs during the removal of branches. When calling:
lg.callAndCaptureOutput(['branch', '-d', BRANCH_NAME]);
await syncFS();
lg.callAndCaptureOutput(['push', ':refs/heads/BRANCH_NAME']);
await syncFS();
I receive the following error from time to time:
Error branch move [-1] - could not remove directory '/[REPO]/.git/refs/heads/[BRANCH_NAME]': still present.
Retrying the operation often helps but not always.
Have you encountered maybe such an error?
Hi,
Thanks for your feedback!
I have not seen this error before. Are you able to write a test case that reproduce the issue?
@ma2ciek how do you have branch
working?