aboutsummaryrefslogtreecommitdiffstats
path: root/models/branches.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/branches.go')
-rw-r--r--models/branches.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/branches.go b/models/branches.go
index bb99cffa05..045019314a 100644
--- a/models/branches.go
+++ b/models/branches.go
@@ -5,6 +5,7 @@
package models
import (
+ "context"
"fmt"
"time"
@@ -525,7 +526,8 @@ func (deletedBranch *DeletedBranch) LoadUser() {
}
// RemoveOldDeletedBranches removes old deleted branches
-func RemoveOldDeletedBranches() {
+func RemoveOldDeletedBranches(ctx context.Context) {
+ // Nothing to do for shutdown or terminate
log.Trace("Doing: DeletedBranchesCleanup")
deleteBefore := time.Now().Add(-setting.Cron.DeletedBranchesCleanup.OlderThan)