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: rules_git_checkout handling branch names with slashes & Remote HEAD. #944

Merged
merged 2 commits into from
Sep 2, 2019
Merged

Change: rules_git_checkout handling branch names with slashes & Remote HEAD. #944

merged 2 commits into from
Sep 2, 2019

Conversation

ik1ne
Copy link
Contributor

@ik1ne ik1ne commented Aug 23, 2019

Current version of rule_git_checkout just returns line[-1] of split by '/', resulting to parsing branch names like 'release/1.2.3' to '1.2.3'.
Also, it does not consider remote head, thereby it will be duplicated when constructing list of branch names (although get_closest does not care about duplicates).

@nvbn
Copy link
Owner

nvbn commented Sep 2, 2019

Looks good, thanks!

@nvbn nvbn merged commit 84c16fb into nvbn:master Sep 2, 2019
@ik1ne ik1ne deleted the checkout-slashes branch September 14, 2019 05:27
riley-martine pushed a commit to riley-martine/thefuck that referenced this pull request Dec 7, 2023
…e HEAD. (nvbn#944)

* Add: Test for branch names with slashes & Remote HEAD.

* - Add: Handling for removing remote HEAD.
- Change: Improved handling for branches with slash in their names.
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.

2 participants