1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-23 21:34:43 +03:00

Fix mirror sync not automatically sending webhook requests (#7366)

This commit is contained in:
Drew 2019-07-06 16:01:21 -04:00 committed by techknowlogick
parent 62d6127f1b
commit 89aa08d372

View File

@ -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
}