diff options
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.hashAlgo.size()*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.hashAlgo.size()*2 { + if sp != repo.hashAlgo.Size()*2 { lastIdx = -1 continue } |
