There was a broken && chain, and cat is simpler than echo in a subshell.

Signed-off-by: Felipe Contreras <felipe.contre...@gmail.com>
---
 contrib/remote-helpers/test-hg.sh | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/contrib/remote-helpers/test-hg.sh 
b/contrib/remote-helpers/test-hg.sh
index df09966..9b9468b 100755
--- a/contrib/remote-helpers/test-hg.sh
+++ b/contrib/remote-helpers/test-hg.sh
@@ -25,7 +25,7 @@ fi
 
 check () {
        echo $3 >expected &&
-       git --git-dir=$1/.git log --format='%s' -1 $2 >actual
+       git --git-dir=$1/.git log --format='%s' -1 $2 >actual &&
        test_cmp expected actual
 }
 
@@ -103,12 +103,12 @@ check_push () {
 }
 
 setup () {
-       (
-       echo "[ui]"
-       echo "username = H G Wells <we...@example.com>"
-       echo "[extensions]"
-       echo "mq ="
-       ) >>"$HOME"/.hgrc &&
+       cat >> "$HOME"/.hgrc <<-EOF &&
+       [ui]
+       username = H G Wells <we...@example.com>
+       [extensions]
+       mq =
+       EOF
 
        GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0230" &&
        GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" &&
-- 
1.9.2+fc1.20.g204a630

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to