From ade6935c91748f388d6bad1a1ba4b2830fbe1ed2 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 15 Jul 2026 08:40:31 +0900 Subject: [PATCH] git: fix dead symref resolution branch in download, it was testing the always-empty ch instead of the symref lookup. --- git.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git.go b/git.go index ef8c7b2..0f0ae53 100644 --- a/git.go +++ b/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] } }