remote: don't try to create tag annotations as refs/tags/v0.1.0^{}

Skip them for now. Eventually we might want to filter these out
earler.
This commit is contained in:
Carlos Martín Nieto 2012-05-09 14:10:30 +02:00
parent a640d79e84
commit 0536afcaa9

View File

@ -353,6 +353,10 @@ int git_remote_update_tips(git_remote *remote, int (*cb)(const char *refname, co
for (; i < refs->length; ++i) {
head = refs->contents[i];
/* Skip tag annotations */
if (!git__suffixcmp(head->name, "^{}"))
continue;
if (git_refspec_transform_r(&refname, spec, head->name) < 0)
goto on_error;