aboutsummaryrefslogtreecommitdiffstats
path: root/modules/repository/create.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repository/create.go')
-rw-r--r--modules/repository/create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repository/create.go b/modules/repository/create.go
index 1fec0335a2..c43f1e0989 100644
--- a/modules/repository/create.go
+++ b/modules/repository/create.go
@@ -211,7 +211,7 @@ func CreateRepository(doer, u *user_model.User, opts CreateRepoOptions) (*repo_m
var rollbackRepo *repo_model.Repository
- if err := db.WithTx(func(ctx context.Context) error {
+ if err := db.WithTx(db.DefaultContext, func(ctx context.Context) error {
if err := CreateRepositoryByExample(ctx, doer, u, repo, false); err != nil {
return err
}