Skip to content

Commit

Permalink
[PATCH] Fix use of wc in t0000-basic
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Barkalow authored and Linus Torvalds committed May 21, 2005
1 parent e002a16 commit ca3ebdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t0000-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca3ebdf

Please sign in to comment.