mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 22:47:21 +00:00
Only use SHA256 feature when git >= 2.42 (#28466)
And fix some comments
This commit is contained in:
@ -40,7 +40,6 @@ type ObjectFormat interface {
|
||||
NewHasher() HasherInterface
|
||||
}
|
||||
|
||||
/* SHA1 Type */
|
||||
type Sha1ObjectFormat struct{}
|
||||
|
||||
func (*Sha1ObjectFormat) ID() ObjectFormatID { return Sha1 }
|
||||
@ -83,7 +82,6 @@ func (h *Sha1ObjectFormat) NewHasher() HasherInterface {
|
||||
return &Sha1Hasher{sha1.New()}
|
||||
}
|
||||
|
||||
// utils
|
||||
func ObjectFormatFromID(id ObjectFormatID) ObjectFormat {
|
||||
switch id {
|
||||
case Sha1:
|
||||
|
Reference in New Issue
Block a user