mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
[PATCH] Fix use of wc in t0000-basic
The version of wc I have (GNU textutils-2.1) puts spaces at the beginning of lines. This patch should work for any version of wc. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Acked-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
e002a16ba5
commit
ca3ebdf5b2
|
@ -32,7 +32,7 @@ test_expect_success \
|
|||
find .git/objects -type d -print >full-of-directories
|
||||
test_expect_success \
|
||||
'.git/objects should have 256 subdirectories.' \
|
||||
'test "$(wc -l full-of-directories | sed -e "s/ .*//")" = 257'
|
||||
'test $(cat full-of-directories | wc -l) = 257'
|
||||
|
||||
################################################################
|
||||
# Basics of the basics
|
||||
|
|
Loading…
Reference in a new issue