Merge branch 'js/short-help-outside-repo-fix'
commitc5973cb98ff4fe0779e90e04de7c099cc2256a3a
authorJunio C Hamano <gitster@pobox.com>
Fri, 18 Feb 2022 21:53:30 +0000 (18 13:53 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Feb 2022 21:53:30 +0000 (18 13:53 -0800)
treed09aedb1405c3b20e31b81c982edf697e4036fbc
parent9b7e531f94c610439cff3c8d4556742524184463
parent87ad07d735448a72d4e1fc4f3ce1e6b44bc613f5
Merge branch 'js/short-help-outside-repo-fix'

"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
builtin/checkout.c
builtin/fetch.c
builtin/pull.c