aboutsummaryrefslogtreecommitdiffstats
path: root/modules/repofiles/delete.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2019-12-09 14:11:24 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2019-12-09 21:11:24 +0800
commit7f0d7c0a17240db5be3fc5755a751d047af5faa6 (patch)
tree9a3d25c271604ce3d3dac551e65d1a05b1f3966d /modules/repofiles/delete.go
parentc34fdf7e33de3a31247e54910e2fb6e81aef4fd8 (diff)
downloadgitea-7f0d7c0a17240db5be3fc5755a751d047af5faa6.tar.gz
gitea-7f0d7c0a17240db5be3fc5755a751d047af5faa6.zip
File Edit: Author/Committer interchanged [BugFix] (#9297)
* simple fix * fix test too * repair more twists use same sequence: first Author, then Commiter
Diffstat (limited to 'modules/repofiles/delete.go')
-rw-r--r--modules/repofiles/delete.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repofiles/delete.go b/modules/repofiles/delete.go
index 2210faae6b..95b0804025 100644
--- a/modules/repofiles/delete.go
+++ b/modules/repofiles/delete.go
@@ -69,7 +69,7 @@ func DeleteRepoFile(repo *models.Repository, doer *models.User, opts *DeleteRepo
message := strings.TrimSpace(opts.Message)
- author, committer := GetAuthorAndCommitterUsers(opts.Committer, opts.Author, doer)
+ author, committer := GetAuthorAndCommitterUsers(opts.Author, opts.Committer, doer)
t, err := NewTemporaryUploadRepository(repo)
if err != nil {