shallow: migrate shallow information into the object parser
[gitweb.git] / commit.c
index 3fcb2fd66ce7fc57638f4dc0ba912995915fe70f..24028fd257a661734a60d86f748517fca7fa7a94 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -204,7 +204,7 @@ static void prepare_commit_graft_the_repository(void)
 
        if (commit_graft_prepared)
                return;
-       graft_file = get_graft_file();
+       graft_file = get_graft_file(the_repository);
        read_graft_file(the_repository, graft_file);
        /* make sure shallows are read */
        is_repository_shallow(the_repository);