summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-05-09 14:10:30 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-05-09 14:10:30 +0200
commit0536afcaa9c27105b184d2fccac1a7b9e778f27c (patch)
treebacd528a6661b8d0020a773fe586059e665a0e17 /src
parenta640d79e84b4bf1d3c601f1a8ccf369427005797 (diff)
downloadlibgit2-0536afcaa9c27105b184d2fccac1a7b9e778f27c.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/remote.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c
index a5cfc822e..1857d328e 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -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;