diff options
author | 6543 <6543@obermui.de> | 2020-12-22 20:44:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-22 21:44:25 +0100 |
commit | 27fa4814b8552a7986da29d8363e4b62f31aa4da (patch) | |
tree | 151dacec5c675861de1477f36bc4de658d41242e /integrations | |
parent | 30edcd5c71a76e86dda391f1df6ebb4c0631f83f (diff) | |
download | gitea-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.go | 2 |
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) |