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>
This commit is contained in:
parent
5896097846
commit
99780b0a4a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user