Skip to content

could not remove directory error during branch removal #90

@ma2ciek

Description

@ma2ciek

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions