]> source.dussan.org Git - gitea.git/commit
Check for sha256 support to use --object-format flag (#28928)
authorJohn Olheiser <john.olheiser@gmail.com>
Thu, 25 Jan 2024 18:04:50 +0000 (12:04 -0600)
committerGitHub <noreply@github.com>
Thu, 25 Jan 2024 18:04:50 +0000 (13:04 -0500)
commit76bbad4e746af977fea66c719d38048869de36c4
tree774501d2cd83913e2623ac05fc596f894026bc1b
parent3084c990b04aea16278f012da38152ada1290a0d
Check for sha256 support to use --object-format flag (#28928)

This should fix https://github.com/go-gitea/gitea/issues/28927

Technically older versions of Git would support this flag as well, but
per https://github.com/go-gitea/gitea/pull/28466 that's the version
where using it (object-format=sha256) left "experimental" state.

`sha1` is (currently) the default, so older clients should be unaffected
in either case.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
modules/git/repo.go