aboutsummaryrefslogtreecommitdiffstats
path: root/modules/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'modules/migrations')
-rw-r--r--modules/migrations/gitea.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/migrations/gitea.go b/modules/migrations/gitea.go
index dcffb360e3..4e930fa831 100644
--- a/modules/migrations/gitea.go
+++ b/modules/migrations/gitea.go
@@ -68,10 +68,10 @@ func (g *GiteaLocalUploader) CreateRepo(repo *base.Repository, includeWiki bool)
IsPrivate: repo.IsPrivate,
Wiki: includeWiki,
})
+ g.repo = r
if err != nil {
return err
}
- g.repo = r
g.gitRepo, err = git.OpenRepository(r.RepoPath())
return err
}