mirror of
https://github.com/fiatjaf/nak.git
synced 2026-07-22 07:48:27 +00:00
Merge pull request #179 from mattn/fix/git-download-symref
git: fix dead symref resolution branch in download
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