Merge branch 'js/unmap-before-ext-diff'
[gitweb.git] / upload-pack.c
index ecc19641fe6790a221238edbe7c9b6c45e53ebe7..222cd3ad8960f352ee711915323ec1f36e5e7673 100644 (file)
@@ -534,7 +534,7 @@ static int get_reachable_list(struct object_array *src,
                if (parse_oid_hex(namebuf, &oid, &p) || *p != '\n')
                        break;
 
-               o = lookup_object(the_repository, oid.hash);
+               o = lookup_object(the_repository, &oid);
                if (o && o->type == OBJ_COMMIT) {
                        o->flags &= ~TMP_MARK;
                }
@@ -722,7 +722,7 @@ static void deepen_by_rev_list(struct packet_writer *writer, int ac,
 {
        struct commit_list *result;
 
-       close_commit_graph(the_repository);
+       close_commit_graph(the_repository->objects);
        result = get_shallow_commits_by_rev_list(ac, av, SHALLOW, NOT_SHALLOW);
        send_shallow(writer, result);
        free_commit_list(result);