]> git.ipfire.org Git - thirdparty/git.git/commit
git: ensure correct git directory setup with -h
authorLessley Dennington <lessleydennington@gmail.com>
Mon, 6 Dec 2021 15:55:55 +0000 (15:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Dec 2021 17:55:05 +0000 (09:55 -0800)
commite5b17bda8b6c830aa65f8c52e08755cae5b815a1
tree0f70af3e540bd833b29d9e4b8f45b858452cc0a5
parentea6ae410bedd6eee1968d24aa267b22ce7a0305a
git: ensure correct git directory setup with -h

Ensure correct git directory setup when -h is passed with commands. This
specifically applies to repos with special help text configuration
variables and to commands run with -h outside a repository. This
will also protect against test failures in the upcoming change to BUG in
prepare_repo_settings if no git directory exists.

Note: this diff is better seen when ignoring whitespace changes.

Co-authored-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Lessley Dennington <lessleydennington@gmail.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c