summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-12-22 20:44:25 +0000
committerGitHub <noreply@github.com>2020-12-22 21:44:25 +0100
commit27fa4814b8552a7986da29d8363e4b62f31aa4da (patch)
tree151dacec5c675861de1477f36bc4de658d41242e /integrations
parent30edcd5c71a76e86dda391f1df6ebb4c0631f83f (diff)
downloadgitea-27fa4814b8552a7986da29d8363e4b62f31aa4da.tar.gz
gitea-27fa4814b8552a7986da29d8363e4b62f31aa4da.zip
Fix git.parseTagData (#14105)
* Fix git.parseTagData() close #14092 * Add Test * add message to test * limit readers * git tag -m trims and terminates with a newline Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'integrations')
-rw-r--r--integrations/api_repo_git_tags_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/api_repo_git_tags_test.go b/integrations/api_repo_git_tags_test.go
index ef2e1ccd08..ad710a4520 100644
--- a/integrations/api_repo_git_tags_test.go
+++ b/integrations/api_repo_git_tags_test.go
@@ -50,7 +50,7 @@ func TestAPIGitTags(t *testing.T) {
assert.Equal(t, aTagName, tag.Tag)
assert.Equal(t, aTag.ID.String(), tag.SHA)
assert.Equal(t, commit.ID.String(), tag.Object.SHA)
- assert.Equal(t, aTagMessage, tag.Message)
+ assert.Equal(t, aTagMessage+"\n", tag.Message)
assert.Equal(t, user.Name, tag.Tagger.Name)
assert.Equal(t, user.Email, tag.Tagger.Email)
assert.Equal(t, util.URLJoin(repo.APIURL(), "git/tags", aTag.ID.String()), tag.URL)