0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 12:35:08 +01:00
gitea/services/migrations
zeripath ffc08c1914
Do not read or write git reference files directly (#18079)
Git will and can pack references into packfiles and therefore if you write/read the
files directly you will get false results. Instead you should use update-ref and
show-ref. To that end I have created three new functions in git/repo_commit.go that
will do this correctly.

Related #17191

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-23 21:44:00 +08:00
..
codebase_test.go
codebase.go
dump.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
error.go
git.go
gitbucket.go
gitea_downloader_test.go
gitea_downloader.go
gitea_uploader_test.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
gitea_uploader.go Do not read or write git reference files directly (#18079) 2021-12-23 21:44:00 +08:00
github_test.go
github.go
gitlab_test.go Move migrations into services and base into modules/migration (#17663) 2021-11-16 23:25:33 +08:00
gitlab.go
gogs_test.go
gogs.go
http_client.go
main_test.go
migrate_test.go
migrate.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
onedev_test.go
onedev.go
restore.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
update.go