Commit 9063be1f45287f945125315e7782745da8c1005d

Vicent Marti 2012-10-01T17:33:05

remote: Fix mid-block declaration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/remote.c b/src/remote.c
index fd78164..c01e41d 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -485,8 +485,8 @@ int git_remote_update_tips(git_remote *remote)
 	}
 
 	for (; i < refs->length; ++i) {
-		autotag = 0;
 		git_pkt *pkt = refs->contents[i];
+		autotag = 0;
 
 		if (pkt->type == GIT_PKT_REF)
 			head = &((git_pkt_ref *)pkt)->head;