Skip to content

Commit ca3ebdf

Browse files
iabervonLinus Torvalds
authored andcommitted
[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>
1 parent e002a16 commit ca3ebdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t0000-basic.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test_expect_success \
3232
find .git/objects -type d -print >full-of-directories
3333
test_expect_success \
3434
'.git/objects should have 256 subdirectories.' \
35-
'test "$(wc -l full-of-directories | sed -e "s/ .*//")" = 257'
35+
'test $(cat full-of-directories | wc -l) = 257'
3636

3737
################################################################
3838
# Basics of the basics

0 commit comments

Comments
 (0)