]> git.ipfire.org Git - thirdparty/git.git/commit
t0012: verify that built-ins handle `-h` even without gitdir
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 8 Feb 2022 11:21:54 +0000 (11:21 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Feb 2022 17:54:44 +0000 (09:54 -0800)
commit87ad07d735448a72d4e1fc4f3ce1e6b44bc613f5
treece6f4ec9a2d5454f1ec7fcf06914573601483862
parent059fda190215d18e7aa23f825cd607b16a016b65
t0012: verify that built-ins handle `-h` even without gitdir

We just fixed a class of recently introduced bugs where calling, say,
`git fetch -h` outside a repository would not show the usage but instead
show an ugly `BUG` message.

Let's verify that this does not regress anymore.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0012-help.sh