]> Kevux Git Server - rit/commit
setup: stop using `the_repository` in `setup_git_env()`
authorPatrick Steinhardt <ps@pks.im>
Tue, 19 May 2026 09:52:15 +0000 (11:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2026 10:36:24 +0000 (19:36 +0900)
commit27b76d1862b970527cd4abb2a1725138a933a118
treeaa688e4eaeb6fddbdb3e7d626f2b05d318351b71
parent7a6a82fba02fb6644647e5beddb54d978918cec0
setup: stop using `the_repository` in `setup_git_env()`

Stop using `the_repository` in `setup_git_env()` 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.

Furthermore, the function is never used outside of "setup.c". Drop the
declaration in "environment.h" and make it static.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.h
setup.c