tag: add repository argument to deref_tag
[gitweb.git] / upload-pack.c
index 45e3a94788f387b9068b4b20f7175a70edf94394..4ca052d0b6418404a81a86df9e434c5a9ba77ab2 100644 (file)
@@ -380,7 +380,7 @@ static int ok_to_give_up(void)
 
                if (want->flags & COMMON_KNOWN)
                        continue;
-               want = deref_tag(want, "a want line", 0);
+               want = deref_tag(the_repository, want, "a want line", 0);
                if (!want || want->type != OBJ_COMMIT) {
                        /* no way to tell if this is reachable by
                         * looking at the ancestry chain alone, so