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

Change getBranchName function to match with orphan checkouts #57

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

JulienMattiussi
Copy link
Contributor

@JulienMattiussi JulienMattiussi commented Aug 3, 2023

Trello card #677

The previous command git rev-parse --abbrev-ref HEAD can't give the name of a branch when it's an orphan.
It always give HEAD instead

With the new command, we always get the real branch name
git branch --show-current

image

@JulienMattiussi JulienMattiussi added RFR and removed WIP labels Aug 3, 2023
@erwanMarmelab erwanMarmelab merged commit 06dae39 into main Sep 6, 2023
7 checks passed
@erwanMarmelab erwanMarmelab deleted the fix-get-branch-name branch September 6, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants