From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: gitster@pobox.com, git@vger.kernel.org
Subject: [PATCH] t5701: "wc -l" may add whitespace
Date: Wed, 29 Aug 2007 17:52:45 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0708291752050.28586@racer.site> (raw)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
Found in msysGit... MSys' wc seems to suffer the same defect that
OSX' wc has...
t/t5701-clone-local.sh | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh
index d2f55eb..7e7019f 100755
--- a/t/t5701-clone-local.sh
+++ b/t/t5701-clone-local.sh
@@ -54,8 +54,7 @@ test_expect_success 'With -no-hardlinks, local will make a copy' '
cd "$D" &&
git clone --bare --no-hardlinks x w &&
cd w &&
- linked=$(find objects -type f ! -links 1 | wc -l) &&
- test "$linked" = 0
+ test $(find objects -type f ! -links 1 | wc -l) = 0
'
test_expect_success 'Even without -l, local will make a hardlink' '
@@ -63,8 +62,7 @@ test_expect_success 'Even without -l, local will make a hardlink' '
rm -fr w &&
git clone -l --bare x w &&
cd w &&
- copied=$(find objects -type f -links 1 | wc -l) &&
- test "$copied" = 0
+ test $(find objects -type f -links 1 | wc -l) = 0
'
test_done
--
1.5.3.rc7.2.g2d7f
next reply other threads:[~2007-08-29 16:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-29 16:52 Johannes Schindelin [this message]
2007-08-29 16:55 ` [PATCH] t5701: "wc -l" may add whitespace Matthieu Moy
2007-08-29 17:00 ` Johannes Schindelin
2007-08-30 6:13 ` Junio C Hamano
2007-08-30 9:26 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0708291752050.28586@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).