Make sha1_array_append take a struct object_id *
[gitweb.git] / connect.c
index 7d65c1c73634363e85a652619cc8705223bc70cb..50b503da0db608f2154dfdb5ff639643c2eebbc1 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -153,7 +153,7 @@ struct ref **get_remote_heads(int in, char *src_buf, size_t src_len,
                                die("protocol error: expected shallow sha-1, got '%s'", arg);
                        if (!shallow_points)
                                die("repository on the other end cannot be shallow");
-                       sha1_array_append(shallow_points, old_oid.hash);
+                       sha1_array_append(shallow_points, &old_oid);
                        continue;
                }
 
@@ -169,7 +169,7 @@ struct ref **get_remote_heads(int in, char *src_buf, size_t src_len,
                }
 
                if (extra_have && !strcmp(name, ".have")) {
-                       sha1_array_append(extra_have, old_oid.hash);
+                       sha1_array_append(extra_have, &old_oid);
                        continue;
                }