aboutsummaryrefslogtreecommitdiff
path: root/refs.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit3bde7664e748dd648f58c0a5280612c239dc0870 (patch)
treeb16d6427a70f4e49f4c0b47eead8d420612123fb /refs.go
parentRemove repo.Root (diff)
signature
Unexport Repository.HashSize
Diffstat (limited to 'refs.go')
-rw-r--r--refs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.go b/refs.go
index 36f7a962..ca1c61ad 100644
--- a/refs.go
+++ b/refs.go
@@ -55,7 +55,7 @@ func (repo *Repository) resolvePackedRef(refname string) (Hash, error) {
continue
}
sp := bytes.IndexByte(line, ' ')
- if sp != repo.HashSize*2 {
+ if sp != repo.hashSize*2 {
continue
}
name := line[sp+1:]