]> git.ipfire.org Git - thirdparty/git.git/blobdiff - upload-pack.c
refs: convert dwim_ref and expand_ref to struct object_id
[thirdparty/git.git] / upload-pack.c
index e25f725c0feaa57c9a09c976628217c99dfb5652..030eba5a0c5bc537361607d79993985efa7ad8c3 100644 (file)
@@ -787,7 +787,7 @@ static void receive_needs(void)
                if (skip_prefix(line, "deepen-not ", &arg)) {
                        char *ref = NULL;
                        struct object_id oid;
-                       if (expand_ref(arg, strlen(arg), oid.hash, &ref) != 1)
+                       if (expand_ref(arg, strlen(arg), &oid, &ref) != 1)
                                die("git upload-pack: ambiguous deepen-not: %s", line);
                        string_list_append(&deepen_not, ref);
                        free(ref);