git-svn: fix several fetch bugs related to repeated invocations
[gitweb.git] / http-push.c
index eb77c9af45f374e17c9bc91b7c1241e0e0613831..9ad6fd00b0bd96580bcebc5aa9ea1713e2b801cd 100644 (file)
@@ -1061,7 +1061,7 @@ static int fetch_indices(void)
                        i++;
                        if (i + 52 < buffer.posn &&
                            !prefixcmp(data + i, " pack-") &&
-                           !strncmp(data + i + 46, ".pack\n", 6)) {
+                           !prefixcmp(data + i + 46, ".pack\n")) {
                                get_sha1_hex(data + i + 6, sha1);
                                setup_index(sha1);
                                i += 51;