Skip to content

delete fails when target branch name is a substring of another existing branch name #45

@adit-chandra

Description

@adit-chandra

Hi, we're running into an issue where we're trying to delete a branch say feature but we get a 404 ref not found error even though we know the ref exists and we can see the ref in s3.

Turns out that because we have two branches, feature and feature-A, the delete command logic returns a 404 because it matches on prefix only and finds that there are two refs.

Also not sure why resolving to 2 objects returns a 404 "{remote_ref} not found" instead of a 409 and/or a more descriptive error.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions