diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-06-10 19:35:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-10 19:35:13 +0800 |
commit | d93e6232e829a1ade1f9540a701061967aa7d61d (patch) | |
tree | dc55b077a6bcf70e85b7032e66da88bc88594e54 /modules/repofiles/upload.go | |
parent | b1be6fd31f6f9f1512de16cd93d30775319b3c75 (diff) | |
download | gitea-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 'modules/repofiles/upload.go')
-rw-r--r-- | modules/repofiles/upload.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/repofiles/upload.go b/modules/repofiles/upload.go index ed6a9438c7..5f428c3139 100644 --- a/modules/repofiles/upload.go +++ b/modules/repofiles/upload.go @@ -188,7 +188,8 @@ func UploadRepoFiles(repo *models.Repository, doer *models.User, opts *UploadRep if err = repo.GetOwner(); err != nil { return fmt.Errorf("GetOwner: %v", err) } - err = models.PushUpdate( + err = PushUpdate( + repo, opts.NewBranch, models.PushUpdateOptions{ PusherID: doer.ID, @@ -203,7 +204,6 @@ func UploadRepoFiles(repo *models.Repository, doer *models.User, opts *UploadRep if err != nil { return fmt.Errorf("PushUpdate: %v", err) } - // FIXME: Should we models.UpdateRepoIndexer(repo) here? return models.DeleteUploads(uploads...) } |