]> git.99rst.org Git - git.git/commit
builtin/send-pack: stop using `the_repository`
authorUsman Akinyemi <redacted>
Fri, 7 Mar 2025 23:35:03 +0000 (05:05 +0530)
committerJunio C Hamano <redacted>
Sat, 8 Mar 2025 00:52:01 +0000 (16:52 -0800)
commit1c14b1aedec6e9307e0c73276b8c1c283413ea41
tree99ee5d1cdaecfeb8c6d7f64e4dae89c55643792c
parentdb58d5a351031ec51817c1a6566ec5672ba17138
builtin/send-pack: stop using `the_repository`

Remove the_repository global variable in favor of the repository
argument that gets passed in "builtin/send-pack.c".

When `-h` is passed to the command outside a Git repository, the
`run_builtin()` will call the `cmd_send_pack()` function with `repo` set
to NULL and then early in the function, `parse_options()` call will give
the options help and exit.

Mentored-by: Christian Couder <redacted>
Signed-off-by: Usman Akinyemi <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/send-pack.c
t/t5400-send-pack.sh
git clone https://git.99rst.org/PROJECT