Skip to content

Commit 277c3e8

Browse files
committed
Merge branch 'ly/run-builtin-use-passed-in-repo'
Code clean-up. * ly/run-builtin-use-passed-in-repo: git.c: remove the_repository dependence in run_builtin()
2 parents da59201 + 2939494 commit 277c3e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,12 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv, struct
462462
precompose_argv_prefix(argc, argv, NULL);
463463
if (use_pager == -1 && run_setup &&
464464
!(p->option & DELAY_PAGER_CONFIG))
465-
use_pager = check_pager_config(the_repository, p->cmd);
465+
use_pager = check_pager_config(repo, p->cmd);
466466
if (use_pager == -1 && p->option & USE_PAGER)
467467
use_pager = 1;
468468
if (run_setup && startup_info->have_repository)
469469
/* get_git_dir() may set up repo, avoid that */
470-
trace_repo_setup(the_repository);
470+
trace_repo_setup(repo);
471471
commit_pager_choice();
472472

473473
if (!help && p->option & NEED_WORK_TREE)

0 commit comments

Comments
 (0)