From: René Scharfe Date: Tue, 26 Nov 2019 18:21:41 +0000 (+0100) Subject: t1512: use test_line_count X-Git-Tag: v2.25.0-rc0~63^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5d04a3ef92887648c8dee49ac75370177dfcf78;p=thirdparty%2Fgit.git t1512: use test_line_count Use test_line_count to check if the number of lines matches expectations, for improved consistency and nicer debug output. Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- diff --git a/t/t1512-rev-parse-disambiguation.sh b/t/t1512-rev-parse-disambiguation.sh index c19fb500cb..f06b045edd 100755 --- a/t/t1512-rev-parse-disambiguation.sh +++ b/t/t1512-rev-parse-disambiguation.sh @@ -282,7 +282,7 @@ test_expect_success 'rev-parse --disambiguate' ' # commits created by commit-tree in earlier tests share a # different prefix. git rev-parse --disambiguate=000000000 >actual && - test $(wc -l