Commit 0536afcaa9c27105b184d2fccac1a7b9e778f27c

Carlos Martín Nieto 2012-05-09T14:10:30

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/remote.c b/src/remote.c
index a5cfc82..1857d32 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;