summaryrefslogtreecommitdiffstats
path: root/modules/migrations/gitea.go
diff options
context:
space:
mode:
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,