Merge branch 'jk/http-backend-deadlock-2.2' into jk/http-backend-deadlock-2.3
[gitweb.git] / connect.c
index 062e133aa39b9e522bf3a03c5e57ac67c03ad88e..2a5c400494f59c974894d18144dfcce6271df139 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -157,8 +157,7 @@ struct ref **get_remote_heads(int in, char *src_buf, size_t src_len,
                        server_capabilities = xstrdup(name + name_len + 1);
                }
 
-               if (extra_have &&
-                   name_len == 5 && !memcmp(".have", name, 5)) {
+               if (extra_have && !strcmp(name, ".have")) {
                        sha1_array_append(extra_have, old_sha1);
                        continue;
                }