]> source.dussan.org Git - gitea.git/commit
Use the database object format name but not read from git repoisitory everytime and...
authorLunny Xiao <xiaolunwen@gmail.com>
Sat, 24 Feb 2024 06:55:19 +0000 (14:55 +0800)
committerGitHub <noreply@github.com>
Sat, 24 Feb 2024 06:55:19 +0000 (06:55 +0000)
commitb79c30435f439af8243ee281310258cdf141e27b
tree43ffc1c750b427434e52880e8969dffc6aaaed33
parent4ba642d07d50d7eb42ae33cd6f1f7f2c82c02a40
Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294)

Now we can get object format name from git command line or from the
database repository table. Assume the column is right, we don't need to
read from git command line every time.

This also fixed a possible bug that the object format is wrong when
migrating a sha256 repository from external.

<img width="658" alt="image"
src="https://github.com/go-gitea/gitea/assets/81045/6e9a9dcf-13bf-4267-928b-6bf2c2560423">
17 files changed:
modules/context/api.go
modules/context/repo.go
routers/api/v1/utils/git.go
routers/private/hook_pre_receive.go
routers/web/repo/blame.go
routers/web/repo/compare.go
routers/web/repo/setting/lfs.go
services/agit/agit.go
services/migrations/gitea_uploader.go
services/pull/check.go
services/pull/merge.go
services/release/release.go
services/repository/branch.go
services/repository/files/commit.go
services/repository/files/tree.go
services/repository/lfs.go
services/repository/push.go