Skip to content

Comments

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

Merged
nvbn merged 2 commits intonvbn:masterfrom
ik1ne:checkout-slashes
Sep 2, 2019
Merged

Change: rules_git_checkout handling branch names with slashes & Remote HEAD.#944
nvbn merged 2 commits intonvbn:masterfrom
ik1ne:checkout-slashes

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

ik1ne added 2 commits August 22, 2019 11:48
- Change: Improved handling for branches with slash in their names.
@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