aboutsummaryrefslogtreecommitdiffstats
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 d0568e6072..8bd3498b17 100644
--- a/services/repository/fork.go
+++ b/services/repository/fork.go
@@ -124,7 +124,7 @@ func ForkRepository(ctx context.Context, doer, owner *user_model.User, opts Fork
defer func() {
if err != nil {
// we can not use the ctx because it maybe canceled or timeout
- cleanupRepository(doer, repo.ID)
+ cleanupRepository(repo.ID)
}
}()