summaryrefslogtreecommitdiff
path: root/t/t4211-line-log.sh
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2013-07-23 10:28:07 -0400
committerJunio C Hamano <gitster@pobox.com>2013-07-23 12:08:15 -0700
commit99780b0a4ab22c903516601bb3634e6477d7f1c1 (patch)
tree93dbc8849d410ab1943a86fd799e392d247fe9fd /t/t4211-line-log.sh
parent58960978462e66c3dbc53b274988e7f27e7c74e2 (diff)
downloadgit-99780b0a4ab22c903516601bb3634e6477d7f1c1.tar.gz
t4211: demonstrate crash when first -L encountered is empty range
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Acked-by: Thomas Rast <trast@inf.ethz.ch> Helped-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4211-line-log.sh')
-rwxr-xr-xt/t4211-line-log.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t4211-line-log.sh b/t/t4211-line-log.sh
index 9042178124..d98efb3c4e 100755
--- a/t/t4211-line-log.sh
+++ b/t/t4211-line-log.sh
@@ -72,4 +72,9 @@ test_expect_failure '-L {empty-range} (any -L)' '
git log -L1,1:b.c -L$n:b.c
'
+test_expect_failure '-L {empty-range} (first -L)' '
+ n=$(expr $(wc -l <b.c) + 1) &&
+ git log -L$n:b.c
+'
+
test_done