mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-12-22 20:32:38 +01:00
Fix connection of normal refs
The --head option always outputs HEAD first.
This commit is contained in:
parent
9ba485b789
commit
f4990dedca
1 changed files with 1 additions and 1 deletions
|
@ -204,5 +204,5 @@ func ref_target(ref):
|
|||
var ret = git("symbolic-ref -q "+ref+" || true")
|
||||
# If it's not, it's probably a regular ref.
|
||||
if ret == "":
|
||||
ret = git("show-ref --head "+ref).split(" ")[0]
|
||||
ret = git("show-ref "+ref).split(" ")[0]
|
||||
return ret
|
||||
|
|
Loading…
Reference in a new issue