revision.c: remove implicit dependency on the_index
[gitweb.git] / remote.c
index 7f6277a1451d147fc5af4ae2910e7c40dd330aec..348417f0a768c0c93d583044c649eda93eb47a76 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -1903,7 +1903,7 @@ int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs,
                         oid_to_hex(&theirs->object.oid));
        argv_array_push(&argv, "--");
 
-       init_revisions(&revs, NULL);
+       repo_init_revisions(the_repository, &revs, NULL);
        setup_revisions(argv.argc, argv.argv, &revs, NULL);
        if (prepare_revision_walk(&revs))
                die("revision walk setup failed");