Browse Source

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>
maint
Eric Sunshine 12 years ago committed by Junio C Hamano
parent
commit
99780b0a4a
  1. 5
      t/t4211-line-log.sh

5
t/t4211-line-log.sh

@ -72,4 +72,9 @@ test_expect_failure '-L {empty-range} (any -L)' ' @@ -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…
Cancel
Save