aboutsummaryrefslogtreecommitdiff
path: root/t/t0000-basic.sh
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2005-05-20 20:49:13 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-20 18:03:47 -0700
commitca3ebdf5b2579d45b478909435b57420a0d2a103 (patch)
tree1002a5d6101358ce2fe60b2d8d509559b55e2698 /t/t0000-basic.sh
parente002a16ba54096666c2d1768daa122e29fba11ee (diff)
downloadgit-ca3ebdf5b2579d45b478909435b57420a0d2a103.tar.gz
git-ca3ebdf5b2579d45b478909435b57420a0d2a103.tar.xz
[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>
Diffstat (limited to 't/t0000-basic.sh')
-rwxr-xr-xt/t0000-basic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh
index 9a557129d..6fb7b1a12 100755
--- a/t/t0000-basic.sh
+++ b/t/t0000-basic.sh
@@ -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