patch-ids.c: remove implicit dependency on the_index
[gitweb.git] / builtin / log.c
index 4b602236d6ee50fff8a08ac23b186e7d6ebd8c22..978fe7c10fab9b0e76dba522e79014bd2a1acabc 100644 (file)
@@ -914,7 +914,7 @@ static void get_patch_ids(struct rev_info *rev, struct patch_ids *ids)
        if ((flags1 & UNINTERESTING) == (flags2 & UNINTERESTING))
                die(_("Not a range."));
 
-       init_patch_ids(ids);
+       init_patch_ids(the_repository, ids);
 
        /* given a range a..b get all patch ids for b..a */
        init_revisions(&check_rev, rev->prefix);