summaryrefslogtreecommitdiffstats
path: root/models/update.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-06-10 19:35:13 +0800
committerGitHub <noreply@github.com>2019-06-10 19:35:13 +0800
commitd93e6232e829a1ade1f9540a701061967aa7d61d (patch)
treedc55b077a6bcf70e85b7032e66da88bc88594e54 /models/update.go
parentb1be6fd31f6f9f1512de16cd93d30775319b3c75 (diff)
downloadgitea-d93e6232e829a1ade1f9540a701061967aa7d61d.tar.gz
gitea-d93e6232e829a1ade1f9540a701061967aa7d61d.zip
Move PushUpdate dependency from models to repofiles (#6763)
* remove push_update * move models.PushUpdate to repofiles.PushUpdate
Diffstat (limited to 'models/update.go')
-rw-r--r--models/update.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/models/update.go b/models/update.go
index 1492d6c0d3..0883cb0e01 100644
--- a/models/update.go
+++ b/models/update.go
@@ -263,10 +263,6 @@ 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,