Message ID | 49977ff9f4e5616689eecc388e53cd6312454da7.1644277797.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 87ad07d735448a72d4e1fc4f3ce1e6b44bc613f5 |
Headers | show |
Series | checkout/fetch/pull/pack-objects: allow -h outside a repository again | expand |
diff --git a/t/t0012-help.sh b/t/t0012-help.sh index 91b68c74a15..cbd725ccac8 100755 --- a/t/t0012-help.sh +++ b/t/t0012-help.sh @@ -139,13 +139,18 @@ test_expect_success 'git help --config-sections-for-completion' ' ' test_expect_success 'generate builtin list' ' + mkdir -p sub && git --list-cmds=builtins >builtins ' while read builtin do test_expect_success "$builtin can handle -h" ' - test_expect_code 129 git $builtin -h >output 2>&1 && + ( + GIT_CEILING_DIRECTORIES=$(pwd) && + export GIT_CEILING_DIRECTORIES && + test_expect_code 129 git -C sub $builtin -h >output 2>&1 + ) && test_i18ngrep usage output ' done <builtins