Skip to content

Conversation

@rbmarliere
Copy link

  • Add a few debug lines
  • Add a new current_branch() so ambiguos refs won't be a problem if the user chooses to delete a branch after deleting a tree
  • Don't use refname:short in has_branch because ambiguous short names are prepended by "heads/" in git branch (e.g. if there's a branch with the same name of a tag)

If there is a tag with the same name, git will prepend "heads/" to the
branch name.
Using rev-parse is not fail proof when dealing with ambiguous ref names.
@rbmarliere rbmarliere force-pushed the fixes branch 2 times, most recently from 44ca009 to 42a9081 Compare December 27, 2024 14:58
@rbmarliere rbmarliere marked this pull request as draft December 27, 2024 16:23
@rbmarliere rbmarliere closed this Oct 29, 2025
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

Successfully merging this pull request may close these issues.

1 participant