aboutsummaryrefslogtreecommitdiffstats
path: root/t/t1517-outside-repo.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-08-25 14:22:00 -0700
committerJunio C Hamano <gitster@pobox.com>2025-08-25 14:22:00 -0700
commita3c6459ab6610d93da8c95000d0ffc803ce39892 (patch)
treeade7727a3e71d67afb9319b77c8c47eace8f83e7 /t/t1517-outside-repo.sh
parentThe second batch (diff)
parentbuiltin: also setup gently for --help-all (diff)
downloadgit-a3c6459ab6610d93da8c95000d0ffc803ce39892.tar.gz
git-a3c6459ab6610d93da8c95000d0ffc803ce39892.zip
Merge branch 'dk/help-all'
"git cmd --help-all" now works outside repositories. * dk/help-all: builtin: also setup gently for --help-all parse-options: refactor flags for usage_with_options_internal
Diffstat (limited to 't/t1517-outside-repo.sh')
-rwxr-xr-xt/t1517-outside-repo.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t1517-outside-repo.sh b/t/t1517-outside-repo.sh
index 5ce0ceb176..1c69d52c76 100755
--- a/t/t1517-outside-repo.sh
+++ b/t/t1517-outside-repo.sh
@@ -133,6 +133,10 @@ do
test_expect_code 129 nongit git $cmd -h >usage &&
test_grep "[Uu]sage: git $cmd " usage
'
+ test_$expect_outcome $prereq "'git $cmd --help-all' outside a repository" '
+ test_expect_code 129 nongit git $cmd --help-all >usage &&
+ test_grep "[Uu]sage: git $cmd " usage
+ '
done
test_expect_success 'fmt-merge-msg does not crash with -h' '