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

Fixes #38

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Fixes #38

wants to merge 2 commits into from

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
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