Skip to content

Commit

Permalink
migrations: ensure rollback on error (go-gitea#7039) (go-gitea#7040)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfwatson authored and jeffliu27 committed Jul 18, 2019
1 parent 824dd00 commit 87e6443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/migrations/gitea.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 87e6443

Please sign in to comment.