aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/object_format.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-12-14 16:51:05 +0800
committerGitHub <noreply@github.com>2023-12-14 16:51:05 +0800
commit9947af639c24d185ace096d3f25098ff94c0790e (patch)
tree15e4911a0afd379914fc0b230406b059c8263107 /modules/git/object_format.go
parent52046b934dc619665bc51a59ad5ff9092fab118e (diff)
downloadgitea-9947af639c24d185ace096d3f25098ff94c0790e.tar.gz
gitea-9947af639c24d185ace096d3f25098ff94c0790e.zip
Only use SHA256 feature when git >= 2.42 (#28466)
And fix some comments
Diffstat (limited to 'modules/git/object_format.go')
-rw-r--r--modules/git/object_format.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/git/object_format.go b/modules/git/object_format.go
index 7f5d09170c..3c52de772b 100644
--- a/modules/git/object_format.go
+++ b/modules/git/object_format.go
@@ -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: