diff options
author | zeripath <art27@cantab.net> | 2020-09-09 14:08:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 14:08:40 +0100 |
commit | 96969ddec8f5f0ba010e7f4e12fceec7ef8e9956 (patch) | |
tree | ef2dc60c3ce87e7f2af2ee19b84ba94b9e19b5a7 /modules/templates | |
parent | 1fbc50f9747947541d998de99a6b7f0efb42522c (diff) | |
download | gitea-96969ddec8f5f0ba010e7f4e12fceec7ef8e9956.tar.gz gitea-96969ddec8f5f0ba010e7f4e12fceec7ef8e9956.zip |
Fix yet another bug with diff file names (#12771)
Following further testing it has become apparent that the diff line
cannot be used to determine filenames for diffs with any sort of predictability
the answer therefore is to use the other lines that are provided with a diff
Fix #12768
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/templates')
-rw-r--r-- | modules/templates/helper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index c5526b3dea..9037af8991 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -694,7 +694,7 @@ func ActionContent2Commits(act Actioner) *repository.PushCommits { // DiffTypeToStr returns diff type name func DiffTypeToStr(diffType int) string { diffTypes := map[int]string{ - 1: "add", 2: "modify", 3: "del", 4: "rename", + 1: "add", 2: "modify", 3: "del", 4: "rename", 5: "copy", } return diffTypes[diffType] } |