From e87f1107ca74c267ec0ef07054085b7a7871eb77 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Mon, 9 Mar 2020 02:08:53 +0800 Subject: commit: fix unexpected truncation in title The commit message should not be treated as locale at all. --- internal/gitutil/diff_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/gitutil') diff --git a/internal/gitutil/diff_test.go b/internal/gitutil/diff_test.go index b651b088..65c5df65 100644 --- a/internal/gitutil/diff_test.go +++ b/internal/gitutil/diff_test.go @@ -28,7 +28,7 @@ func Test_diffsToHTML(t *testing.T) { {Type: dmp.DiffEqual, Text: " biz"}, }, lineType: git.DiffLineAdd, - expHTML: template.HTML(`+ foo bar biz`), + expHTML: template.HTML(`+foo bar biz`), }, { diffs: []dmp.Diff{ @@ -38,7 +38,7 @@ func Test_diffsToHTML(t *testing.T) { {Type: dmp.DiffEqual, Text: " biz"}, }, lineType: git.DiffLineDelete, - expHTML: template.HTML(`- foo bar biz`), + expHTML: template.HTML(`-foo bar biz`), }, } for _, test := range tests { -- cgit v1.2.3