Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not remove directory error during branch removal #90

Open
ma2ciek opened this issue Jan 11, 2024 · 2 comments
Open

could not remove directory error during branch removal #90

ma2ciek opened this issue Jan 11, 2024 · 2 comments

Comments

@ma2ciek
Copy link

ma2ciek commented Jan 11, 2024

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?

@petersalomonsen
Copy link
Owner

Hi,

Thanks for your feedback!

I have not seen this error before. Are you able to write a test case that reproduce the issue?

@samwho
Copy link

samwho commented Jan 27, 2024

@ma2ciek how do you have branch working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants