aboutsummaryrefslogtreecommitdiffstats
path: root/t/t5304-prune.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xt/t5304-prune.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t5304-prune.sh b/t/t5304-prune.sh
index 1f1f664871..2be7cd30de 100755
--- a/t/t5304-prune.sh
+++ b/t/t5304-prune.sh
@@ -364,4 +364,9 @@ test_expect_success 'gc.recentObjectsHook' '
git cat-file -p $BLOB
'
+test_expect_success 'prune does not crash with -h' '
+ test_expect_code 129 git prune -h >usage &&
+ test_grep "[Uu]sage: git prune " usage
+'
+
test_done