]> git.ipfire.org Git - thirdparty/git.git/commit
setup: stop using `the_repository` in `setup_git_directory()`
authorPatrick Steinhardt <ps@pks.im>
Tue, 19 May 2026 09:52:17 +0000 (11:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2026 10:36:25 +0000 (19:36 +0900)
commitf9210dbc8add0ddd6bf31eb479d0d1d40a42850c
treed5916334bb4a58c2771497427af87a9361753dbf
parenta80a8e3ea6a070185840219778df24db832899f6
setup: stop using `the_repository` in `setup_git_directory()`

Stop using `the_repository` in `setup_git_directory()` 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>
40 files changed:
archive.c
builtin/grep.c
builtin/hash-object.c
builtin/merge-file.c
builtin/rev-parse.c
git.c
http-push.c
scalar.c
setup.c
setup.h
t/helper/test-advise.c
t/helper/test-bitmap.c
t/helper/test-bloom.c
t/helper/test-cache-tree.c
t/helper/test-config.c
t/helper/test-dump-cache-tree.c
t/helper/test-dump-fsmonitor.c
t/helper/test-dump-split-index.c
t/helper/test-dump-untracked-cache.c
t/helper/test-find-pack.c
t/helper/test-fsmonitor-client.c
t/helper/test-lazy-init-name-hash.c
t/helper/test-match-trees.c
t/helper/test-pack-deltas.c
t/helper/test-pack-mtimes.c
t/helper/test-partial-clone.c
t/helper/test-path-walk.c
t/helper/test-reach.c
t/helper/test-read-cache.c
t/helper/test-read-graph.c
t/helper/test-read-midx.c
t/helper/test-ref-store.c
t/helper/test-revision-walking.c
t/helper/test-scrap-cache-tree.c
t/helper/test-serve-v2.c
t/helper/test-submodule-config.c
t/helper/test-submodule-nested-repo-config.c
t/helper/test-submodule.c
t/helper/test-userdiff.c
t/helper/test-write-cache.c