]> granicus.if.org Git - git/commitdiff
t4211: demonstrate crash when first -L encountered is empty range
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 23 Jul 2013 14:28:07 +0000 (10:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jul 2013 19:08:15 +0000 (12:08 -0700)
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>
t/t4211-line-log.sh

index 9042178124d0bdc1246e3d9862fc72cc5d406a2b..d98efb3c4e96570566a08e7b373d892d16ffa5ad 100755 (executable)
@@ -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