]> git.proxmox.com Git - libgit2.git/commit - src/tag.c
tag: discover the target type if needed
authorCarlos Martín Nieto <cmn@elego.de>
Tue, 5 Apr 2011 14:53:32 +0000 (16:53 +0200)
committerVicent Marti <tanoku@gmail.com>
Fri, 8 Apr 2011 00:36:53 +0000 (03:36 +0300)
commit81234673a1f7cd5d92f0dd5f03d1442ec1ed2d62
treea493fd98182c9297071e37397399602ad64f2fea
parent26f2c897b86613ed17d2bc9a35077517f57b234e
tag: discover the target type if needed

Don't blindly pass the target type to git_tag_type2string as it will
give an empty string on GIT_OBJ_ANY which would cause us to create an
invalid tag object.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
src/tag.c