aboutsummaryrefslogtreecommitdiffstats
path: root/modules/repository/hooks.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repository/hooks.go')
-rw-r--r--modules/repository/hooks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repository/hooks.go b/modules/repository/hooks.go
index e219903f75..6072dda016 100644
--- a/modules/repository/hooks.go
+++ b/modules/repository/hooks.go
@@ -221,7 +221,7 @@ func SyncRepositoryHooks(ctx context.Context) error {
log.Trace("Doing: SyncRepositoryHooks")
if err := db.Iterate(
- db.DefaultContext(),
+ db.DefaultContext,
new(models.Repository),
builder.Gt{"id": 0},
func(idx int, bean interface{}) error {