]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'js/short-help-outside-repo-fix'
authorJunio C Hamano <gitster@pobox.com>
Fri, 18 Feb 2022 21:53:30 +0000 (13:53 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Feb 2022 21:53:30 +0000 (13:53 -0800)
"git cmd -h" outside a repository should error out cleanly for many
commands, but instead it hit a BUG(), which has been corrected.

* js/short-help-outside-repo-fix:
  t0012: verify that built-ins handle `-h` even without gitdir
  checkout/fetch/pull/pack-objects: allow `-h` outside a repository

1  2 
builtin/checkout.c
builtin/fetch.c
builtin/pull.c

Simple merge
diff --cc builtin/fetch.c
Simple merge
diff --cc builtin/pull.c
Simple merge