Skip to content

Commit 24f951a

Browse files
ttaylorrgitster
authored andcommitted
t/helper/test-read-graph.c: prepare repo settings
The read-graph test-tool is used by a number of the commit-graph test to assert various properties about a commit-graph. Previously, this program never ran 'prepare_repo_settings()'. There was no need to do so, since none of the commit-graph machinery is affected by the repo settings. In the next patch, the commit-graph machinery's behavior will become dependent on the repo settings, and so loading them before running the rest of the test tool is critical. As such, teach the test tool to call 'prepare_repo_settings()'. Signed-off-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ab14d06 commit 24f951a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/helper/test-read-graph.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ int cmd__read_graph(int argc, const char **argv)
1212
setup_git_directory();
1313
odb = the_repository->objects->odb;
1414

15+
prepare_repo_settings(the_repository);
16+
1517
graph = read_commit_graph_one(the_repository, odb);
1618
if (!graph)
1719
return 1;
1820

19-
2021
printf("header: %08x %d %d %d %d\n",
2122
ntohl(*(uint32_t*)graph->data),
2223
*(unsigned char*)(graph->data + 4),

0 commit comments

Comments
 (0)