aboutsummaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorDrew <drewkowalski93@gmail.com>2019-07-06 16:01:21 -0400
committertechknowlogick <techknowlogick@gitea.io>2019-07-06 16:01:21 -0400
commit89aa08d372000da552a084e57276f2ea115e2e0c (patch)
tree1abfbaf745b613a5fc6e54170a139a0e68e552bb /models/action.go
parent62d6127f1b945b3160d337a190b33aa96e0f60b5 (diff)
downloadgitea-89aa08d372000da552a084e57276f2ea115e2e0c.tar.gz
gitea-89aa08d372000da552a084e57276f2ea115e2e0c.zip
Fix mirror sync not automatically sending webhook requests (#7366)
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go
index 89283930e9..21b008e3be 100644
--- a/models/action.go
+++ b/models/action.go
@@ -896,6 +896,11 @@ func mirrorSyncAction(e Engine, opType ActionType, repo *Repository, refName str
}); err != nil {
return fmt.Errorf("notifyWatchers: %v", err)
}
+
+ defer func() {
+ go HookQueue.Add(repo.ID)
+ }()
+
return nil
}