-
Notifications
You must be signed in to change notification settings - Fork 533
Git::Branch private function parse_name doesn't work as documented #600
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
Comments
mblythe86
added a commit
to mblythe86/ruby-git
that referenced
this issue
Nov 4, 2022
Fixes both ruby-git#599 and ruby-git#600
mblythe86
added a commit
to mblythe86/ruby-git
that referenced
this issue
Nov 4, 2022
Fixes both ruby-git#599 and ruby-git#600 Also fixes argument name of update_ref. I'm assuming it's supposed to be analogous to the command line `git update-ref`, which doesn't directly use a branch name. Signed-off-by: Matt Blythe <mblythester+git@gmail.com>
mblythe86
added a commit
to mblythe86/ruby-git
that referenced
this issue
Nov 4, 2022
Fixes both ruby-git#599 and ruby-git#600 Also fixes argument name of update_ref. I'm assuming it's supposed to be analogous to the command line `git update-ref`, which doesn't directly use a branch name. Signed-off-by: Matthew Blythe <mblythester+git@gmail.com>
jcouball
pushed a commit
to mblythe86/ruby-git
that referenced
this issue
Feb 26, 2023
Fixes both ruby-git#599 and ruby-git#600 Also fixes argument name of update_ref. I'm assuming it's supposed to be analogous to the command line `git update-ref`, which doesn't directly use a branch name. Signed-off-by: Matthew Blythe <mblythester+git@gmail.com>
jcouball
added a commit
that referenced
this issue
Feb 26, 2023
* Branch-related bugfixes Fixes both #599 and #600 Also fixes argument name of update_ref. I'm assuming it's supposed to be analogous to the command line `git update-ref`, which doesn't directly use a branch name. Signed-off-by: Matthew Blythe <mblythester+git@gmail.com> * Add test for Branch#update_ref Signed-off-by: James Couball <jcouball@yahoo.com> --------- Signed-off-by: Matthew Blythe <mblythester+git@gmail.com> Signed-off-by: James Couball <jcouball@yahoo.com> Co-authored-by: Matthew Blythe <mblythester+git@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue
The code comments right before
parse_name
say one thing, but the code doesn't do it.Your environment
Steps to reproduce
Expected behaviour
Based on this comment in
branch.rb
:I'd expect the above code to print this:
Actual behaviour
The above code prints this:
Recommendation
It looks like the regexp in
parse_name
is wrong. It should include the slash after 'remotes' in the non-capturing group:The text was updated successfully, but these errors were encountered: