trace: stop using the_repository
Stop using `the_repository` in the "trace" subsystem by passing in a repository when setting up tracing. Adjust the only caller accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
59b6131a67
commit
bd0c0fb790
2
git.c
2
git.c
@@ -467,7 +467,7 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv, struct
|
||||
use_pager = 1;
|
||||
if (run_setup && startup_info->have_repository)
|
||||
/* get_git_dir() may set up repo, avoid that */
|
||||
trace_repo_setup();
|
||||
trace_repo_setup(the_repository);
|
||||
commit_pager_choice();
|
||||
|
||||
if (!help && p->option & NEED_WORK_TREE)
|
||||
|
||||
Reference in New Issue
Block a user