aboutsummaryrefslogtreecommitdiffstats
path: root/git.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-12-17 07:43:50 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-18 10:44:30 -0800
commitbd0c0fb790dcb6cd32a585e1d9fcb0a4a4f7379b (patch)
tree106b99f27572abbb1b4b04db2b37a4896f624dcb /git.c
parent59b6131a677b0b45fb7fd54ba60dbf689b0a1797 (diff)
downloadgit-bd0c0fb790dcb6cd32a585e1d9fcb0a4a4f7379b.tar.gz
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>
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index d977ebc84c..a94dab3770 100644
--- a/git.c
+++ b/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)