diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-30 09:59:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 09:59:10 +0800 |
commit | e7d4895732f22b523bd9e65a017c68636fb93002 (patch) | |
tree | 38811ceb272e7d680b9bf4385e50d654cea4fe64 /modules/repofiles/update.go | |
parent | 4d643a59db49ae47870326abb5fed8562e1d71a5 (diff) | |
download | gitea-e7d4895732f22b523bd9e65a017c68636fb93002.tar.gz gitea-e7d4895732f22b523bd9e65a017c68636fb93002.zip |
Move commit repo action from models to repofiles package (#7645)
* move commit repo action from models to repofiles package
* fix unit tests
Diffstat (limited to 'modules/repofiles/update.go')
-rw-r--r-- | modules/repofiles/update.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repofiles/update.go b/modules/repofiles/update.go index 1189704871..21df776060 100644 --- a/modules/repofiles/update.go +++ b/modules/repofiles/update.go @@ -497,7 +497,7 @@ func PushUpdate(repo *models.Repository, branch string, opts models.PushUpdateOp commits = models.ListToPushCommits(l) } - if err := models.CommitRepoAction(models.CommitRepoActionOptions{ + if err := CommitRepoAction(CommitRepoActionOptions{ PusherName: opts.PusherName, RepoOwnerID: repo.OwnerID, RepoName: repo.Name, |