Skip to content

Commit 40ecc82

Browse files
committed
fix merge
1 parent d41750f commit 40ecc82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/repository/adopt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func AdoptRepository(ctx context.Context, doer, owner *user_model.User, opts Cre
6565

6666
// 1 - create the repository database operations first
6767
err := db.WithTx(ctx, func(ctx context.Context) error {
68-
return createRepositoryInDB(ctx, doer, u, repo, false)
68+
return createRepositoryInDB(ctx, doer, owner, repo, false)
6969
})
7070
if err != nil {
7171
return nil, err

services/repository/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func CreateRepositoryDirectly(ctx context.Context, doer, owner *user_model.User,
252252

253253
// 1 - create the repository database operations first
254254
err := db.WithTx(ctx, func(ctx context.Context) error {
255-
return createRepositoryInDB(ctx, doer, u, repo, false)
255+
return createRepositoryInDB(ctx, doer, owner, repo, false)
256256
})
257257
if err != nil {
258258
return nil, err

0 commit comments

Comments
 (0)