migrations: ensure rollback on error (#7039) (#7040)

tokarchuk/v1.17
Rob Watson 6 years ago committed by zeripath
parent 355ab0c62c
commit daaae2aad5
  1. 2
      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
}

Loading…
Cancel
Save