diff options
Diffstat (limited to 'models/update.go')
-rw-r--r-- | models/update.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/update.go b/models/update.go index f3bd6cce13..f91559d9ec 100644 --- a/models/update.go +++ b/models/update.go @@ -263,6 +263,10 @@ func pushUpdate(opts PushUpdateOptions) (repo *Repository, err error) { commits = ListToPushCommits(l) } + if opts.RefFullName == git.BranchPrefix+repo.DefaultBranch { + UpdateRepoIndexer(repo) + } + if err := CommitRepoAction(CommitRepoActionOptions{ PusherName: opts.PusherName, RepoOwnerID: owner.ID, |