1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-16 07:18:37 +00:00

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>
This commit is contained in:
6543
2020-12-22 20:44:25 +00:00
committed by GitHub
parent 30edcd5c71
commit 27fa4814b8
4 changed files with 81 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ l:
}
nextline += eol + 1
case eol == 0:
tag.Message = string(data[nextline+1 : len(data)-1])
tag.Message = string(data[nextline+1:])
break l
default:
break l