Skip to content

Commit

Permalink
t4211: demonstrate crash when first -L encountered is empty range
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sunshine authored and Junio C Hamano committed Jul 23, 2013
1 parent 5896097 commit 99780b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/t4211-line-log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 99780b0

Please sign in to comment.