Fast implementation of Git in pure Go codeberg.org/lindenii/furgit
git go
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

object/store/loose: Fix hex shard, I was stupid

Runxi Yu 37ea961e bf394989

+1 -1
+1 -1
object/store/loose/quarantine_promote.go
··· 42 42 return fmt.Errorf("objectstore/loose: quarantine contains unexpected file %q", entry.Name()) 43 43 } 44 44 45 - if len(entry.Name()) == 2 && isHexString(entry.Name()) { 45 + if len(entry.Name()) != 2 || !isHexString(entry.Name()) { 46 46 return fmt.Errorf("objectstore/loose: quarantine contains invalid shard %q", entry.Name()) 47 47 } 48 48