mirror of
https://github.com/fiatjaf/nak.git
synced 2026-07-22 07:48:27 +00:00
git: fix dead symref resolution branch in download, it was testing the always-empty ch instead of the symref lookup.
This commit is contained in:
4
git.go
4
git.go
@@ -590,8 +590,8 @@ aside from those, there is also:
|
||||
commitHash = ch
|
||||
} else if ch, ok := info.Refs["refs/tags/"+ref]; ok {
|
||||
commitHash = ch
|
||||
} else if sr, ok := info.Symrefs[ref]; ok && ch != "" {
|
||||
commitHash, _ = info.Refs[sr]
|
||||
} else if sr, ok := info.Symrefs[ref]; ok {
|
||||
commitHash = info.Refs[sr]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user