libgit2/tests-clar/object
Erik van Zijst 6bb9fea13e tags: Fixed the tag parser to correctly treat the message field as optional.
This fix makes libgit2 capable of parsing annotated tag objects that lack
the optional message/description field.
Previously, libgit2 treated this field as mandatory and raised a tag_error on
such tags. However, the message field is optional.

An example of such a tag is refs/tags/v2.6.16.31-rc1 in Linux:

$ git cat-file tag refs/tags/v2.6.16.31-rc1
object afaa018cefb6af63befef1df7d8febaae904434f
type commit
tag v2.6.16.31-rc1
tagger Adrian Bunk <bunk@stusta.de> 1162716505 +0100
$
2012-11-02 10:28:17 -07:00
..
blob Add complex checkout test and then fix checkout 2012-10-09 11:59:34 -07:00
commit index: Fix tests 2012-11-01 20:24:43 +01:00
raw Boom 2012-05-02 16:57:16 -07:00
tag tags: Fixed the tag parser to correctly treat the message field as optional. 2012-11-02 10:28:17 -07:00
tree tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode() 2012-08-21 23:15:13 +02:00
lookup.c errors: Rename error codes 2012-05-18 01:48:50 +02:00
message.c message: reorganize tests 2012-10-26 21:01:58 +02:00
peel.c object: make git_object_peel() test more readable 2012-09-06 18:40:09 +02:00