summaryrefslogtreecommitdiffstats
path: root/services/repository/fork.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/repository/fork.go')
-rw-r--r--services/repository/fork.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/fork.go b/services/repository/fork.go
index cf9b3992cd..3ed0f4ffa5 100644
--- a/services/repository/fork.go
+++ b/services/repository/fork.go
@@ -184,7 +184,7 @@ func ForkRepository(ctx context.Context, doer, owner *user_model.User, opts Fork
// ConvertForkToNormalRepository convert the provided repo from a forked repo to normal repo
func ConvertForkToNormalRepository(repo *repo_model.Repository) error {
err := db.WithTx(db.DefaultContext, func(ctx context.Context) error {
- repo, err := repo_model.GetRepositoryByIDCtx(ctx, repo.ID)
+ repo, err := repo_model.GetRepositoryByID(ctx, repo.ID)
if err != nil {
return err
}