aboutsummaryrefslogtreecommitdiffstats
path: root/services/repository/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/repository/template.go')
-rw-r--r--services/repository/template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/template.go b/services/repository/template.go
index 621bd95cb1..6906a60083 100644
--- a/services/repository/template.go
+++ b/services/repository/template.go
@@ -102,7 +102,7 @@ func GenerateRepository(ctx context.Context, doer, owner *user_model.User, templ
defer func() {
if err != nil {
// we can not use the ctx because it maybe canceled or timeout
- cleanupRepository(doer, generateRepo.ID)
+ cleanupRepository(generateRepo.ID)
}
}()