]> git.ipfire.org Git - thirdparty/git.git/commit
setup: stop using `the_repository` in `prefix_path()`
authorPatrick Steinhardt <ps@pks.im>
Tue, 19 May 2026 09:52:08 +0000 (11:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2026 10:36:24 +0000 (19:36 +0900)
commit2c46e933fa1c2f4ea7e49a26d5dcabaadcfcecb6
treed1718d920419c0413501c74c33c28817ae9b0670
parent8da5ecdb4d72594ee126e949bfe813c0f89fe692
setup: stop using `the_repository` in `prefix_path()`

Stop using `the_repository` in `prefix_path()` and instead accept the
repository as a parameter. The injection of `the_repository` is thus
bumped one level higher, where callers now pass it in explicitly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 files changed:
builtin/blame.c
builtin/check-attr.c
builtin/checkout-index.c
builtin/mv.c
builtin/sparse-checkout.c
builtin/update-index.c
line-log.c
object-name.c
pathspec.c
setup.c
setup.h
t/helper/test-path-utils.c