diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-03-10 08:13:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-03-10 13:16:19 -0700 |
commit | 7ebf19ce55ebfddd152aab6ddcc6559bba378aec (patch) | |
tree | ce8870c7b56c9cf343acff365b29478460f3d1fa /commit.c | |
parent | 7835ee75cdffbce925246cbacc83e8b4a932a681 (diff) |
pack-check: stop depending on `the_repository`
There are multiple sites in "pack-check.c" where we use the global
`the_repository` variable, either explicitly or implicitly by using
`the_hash_algo`. In all of those cases we already have a repository
available in the calling context though.
Refactor the code to instead use the caller-provided repository and
remove the `USE_THE_REPOSITORY_VARIABLE` define.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions