diff options
| author | 2026-01-17 23:00:14 +0800 | |
|---|---|---|
| committer | 2026-01-17 23:00:14 +0800 | |
| commit | 90b5f779080272d5c6ef39e0c93d8592840a53b7 (patch) | |
| tree | a954e45ec18d8a8dac49c8a3a60eae19a4c4f65e /refs.go | |
| parent | hash: Key by algorithm, not size (diff) | |
| signature | No signature | |
repo: Drop hashSize and use hashAlgo.size()
Diffstat (limited to 'refs.go')
| -rw-r--r-- | refs.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,7 +70,7 @@ func (repo *Repository) resolvePackedRef(refname string) (Ref, error) { } sp := bytes.IndexByte(line, ' ') - if sp != repo.hashSize*2 { + if sp != repo.hashAlgo.size()*2 { continue } @@ -428,7 +428,7 @@ func (repo *Repository) ListRefs(pattern string) ([]Ref, error) { } sp := bytes.IndexByte(line, ' ') - if sp != repo.hashSize*2 { + if sp != repo.hashAlgo.size()*2 { lastIdx = -1 continue } |
