]> git.ipfire.org Git - thirdparty/git.git/commit
t/helper: remove dependency on `the_repository` in "proc-receive"
authorPatrick Steinhardt <ps@pks.im>
Fri, 14 Jun 2024 06:51:10 +0000 (08:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2024 17:26:35 +0000 (10:26 -0700)
commit912d4756cde9513e500f345fcc9b7a2c43a47e65
treed061ceb2c62f886bfe436583dc54468d2f985216
parent8e9a1d0dc2d543c05cb0c11a598fb7675d5deea8
t/helper: remove dependency on `the_repository` in "proc-receive"

The "proc-receive" test helper implicitly relies on `the_repository` via
`parse_oid_hex()`. This isn't necessary though, and in fact the whole
command does not depend on `the_repository` at all.

Stop setting up `the_repository` and use `parse_oid_hex_any()` to parse
object IDs.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-proc-receive.c