diff options
Diffstat (limited to 'modules/repofiles/update.go')
-rw-r--r-- | modules/repofiles/update.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/repofiles/update.go b/modules/repofiles/update.go index 8e057700ab..5479616c4b 100644 --- a/modules/repofiles/update.go +++ b/modules/repofiles/update.go @@ -504,5 +504,10 @@ func PushUpdate(repo *models.Repository, branch string, opts models.PushUpdateOp if opts.RefFullName == git.BranchPrefix+repo.DefaultBranch { models.UpdateRepoIndexer(repo) } + + if err = models.WatchIfAuto(opts.PusherID, repo.ID, true); err != nil { + log.Warn("Fail to perform auto watch on user %v for repo %v: %v", opts.PusherID, repo.ID, err) + } + return nil } |