Fix connection of normal refs

The --head option always outputs HEAD first.
This commit is contained in:
Sebastian Morr 2020-09-14 14:05:16 +02:00
parent 9ba485b789
commit f4990dedca

View file

@ -204,5 +204,5 @@ func ref_target(ref):
var ret = git("symbolic-ref -q "+ref+" || true") var ret = git("symbolic-ref -q "+ref+" || true")
# If it's not, it's probably a regular ref. # If it's not, it's probably a regular ref.
if ret == "": if ret == "":
ret = git("show-ref --head "+ref).split(" ")[0] ret = git("show-ref "+ref).split(" ")[0]
return ret return ret