summaryrefslogtreecommitdiffstats
path: root/modules/migrations/gitea.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-09-15 16:37:44 +0200
committerGitHub <noreply@github.com>2020-09-15 22:37:44 +0800
commit6c61f498ea6edb9260bc2b2b8db5bc3cb9214522 (patch)
tree9d1322d4ff85aec9d24f98f65d72c5a54cc1838d /modules/migrations/gitea.go
parent3d0ad2885a25012ba08c42a4ed181dc22dd72770 (diff)
downloadgitea-6c61f498ea6edb9260bc2b2b8db5bc3cb9214522.tar.gz
gitea-6c61f498ea6edb9260bc2b2b8db5bc3cb9214522.zip
On Migration respect old DefaultBranch (#12843)
* On Migration respect old DefaultBranch * add DefaultBranch int test set Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/migrations/gitea.go')
-rw-r--r--modules/migrations/gitea.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/migrations/gitea.go b/modules/migrations/gitea.go
index b70ad7b0ce..d4ba66fd38 100644
--- a/modules/migrations/gitea.go
+++ b/modules/migrations/gitea.go
@@ -122,6 +122,7 @@ func (g *GiteaLocalUploader) CreateRepo(repo *base.Repository, opts base.Migrate
if err != nil {
return err
}
+ r.DefaultBranch = repo.DefaultBranch
r, err = repository.MigrateRepositoryGitData(g.doer, owner, r, base.MigrateOptions{
RepoName: g.repoName,