commit.cocci: refactor code, avoid double rewrite
[gitweb.git] / upload-pack.c
index d098ef598289d16956309cb73d4518a92c1206af..56505d60c341ed4f718de23307fe52ce05d838fa 100644 (file)
@@ -834,7 +834,7 @@ static int process_deepen_not(const char *line, struct string_list *deepen_not,
        if (skip_prefix(line, "deepen-not ", &arg)) {
                char *ref = NULL;
                struct object_id oid;
-               if (expand_ref(arg, strlen(arg), &oid, &ref) != 1)
+               if (expand_ref(the_repository, arg, strlen(arg), &oid, &ref) != 1)
                        die("git upload-pack: ambiguous deepen-not: %s", line);
                string_list_append(deepen_not, ref);
                free(ref);