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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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