fix: hook post-receive for sha256 repos

This commit is contained in:
oliverpool 2024-05-15 15:42:29 +02:00
parent 2ac3dcbd43
commit 5e73c67d67
8 changed files with 50 additions and 22 deletions

View file

@ -122,6 +122,7 @@ func (h Sha256ObjectFormatImpl) ComputeHash(t ObjectType, content []byte) Object
var (
Sha1ObjectFormat ObjectFormat = Sha1ObjectFormatImpl{}
Sha256ObjectFormat ObjectFormat = Sha256ObjectFormatImpl{}
// any addition must be reflected in IsEmptyCommitID
)
var SupportedObjectFormats = []ObjectFormat{