about summary refs log tree commit diff
path: root/third_party/git/t/t4208-log-magic-pathspec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/t4208-log-magic-pathspec.sh')
-rwxr-xr-xthird_party/git/t/t4208-log-magic-pathspec.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/git/t/t4208-log-magic-pathspec.sh b/third_party/git/t/t4208-log-magic-pathspec.sh
index 4c8f3b8e1b..6cdbe4747a 100755
--- a/third_party/git/t/t4208-log-magic-pathspec.sh
+++ b/third_party/git/t/t4208-log-magic-pathspec.sh
@@ -55,6 +55,10 @@ test_expect_success '"git log -- :/a" should not be ambiguous' '
 	git log -- :/a
 '
 
+test_expect_success '"git log :/any/path/" should not segfault' '
+	test_must_fail git log :/any/path/
+'
+
 # This differs from the ":/a" check above in that :/in looks like a pathspec,
 # but doesn't match an actual file.
 test_expect_success '"git log :/in" should not be ambiguous' '