gitea/services/migrations
zeripath ffc08c1914
Do not read or write git reference files directly ()
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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
codebase.go Add migrate from Codebase ()
codebase_test.go Add migrate from Codebase ()
dump.go Simplify parameter types ()
error.go
git.go
gitbucket.go
gitea_downloader.go Use `hostmatcher` to replace `matchlist`, improve security ()
gitea_downloader_test.go
gitea_uploader.go Do not read or write git reference files directly ()
gitea_uploader_test.go Move repository model into models/repo ()
github.go Use `hostmatcher` to replace `matchlist`, improve security ()
github_test.go
gitlab.go Use `hostmatcher` to replace `matchlist`, improve security ()
gitlab_test.go
gogs.go Use `hostmatcher` to replace `matchlist`, improve security ()
gogs_test.go
http_client.go Use `hostmatcher` to replace `matchlist`, improve security ()
main_test.go Add migrate from Codebase ()
migrate.go Move repository model into models/repo ()
migrate_test.go Move user related model into models/user ()
onedev.go Use new OneDev /milestones endpoint ()
onedev_test.go
restore.go Simplify parameter types ()
update.go Move more model into models/user ()