We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db3ddc0 commit cd4893fCopy full SHA for cd4893f
lib/git/lib.rb
@@ -679,7 +679,7 @@ def change_head_branch(branch_name)
679
# The branch's full refname
680
(?:
681
(?<not_a_branch>\(not[[:blank:]]a[[:blank:]]branch\)) |
682
- (?:\(HEAD[[:blank:]]detached[[:blank:]]at[[:blank:]](?<detached_ref>[^\)]+)\)) |
+ (?:\(HEAD[[:blank:]]detached[[:blank:]]at[[:blank:]](?<detached_ref>[^)]+)\)) |
683
(?<refname>[^[[:blank:]]]+)
684
)
685
0 commit comments