All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Golebiowski <adamg@pld-linux.org>
To: git@vger.kernel.org, gitster@pobox.com
Subject: [PATCH] Kill bashizm in t/t3200-branch.sh and t/t7201-co.sh.
Date: Thu, 10 Apr 2008 09:25:00 +0200	[thread overview]
Message-ID: <20080410072500.GA10188@mysza.eu.org> (raw)

On systems with /bin/sh being different than /bin/bash, make test fails due
to some bash-specific constructs. This patch makes it possible to run the
test-suite systems with on /bin/sh pointing to /bin/ksh.

Signed-off-by: Adam Golebiowski <adamg@pld-linux.org>
---
 t/t3200-branch.sh |    2 +-
 t/t7201-co.sh     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index cb5f7a4..e8ff82f 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -200,7 +200,7 @@ test_expect_success \
 
 test_expect_success \
     'branch from non-branch HEAD w/--track causes failure' \
-    '!(git branch --track my10 HEAD^)'
+    '! git branch --track my10 HEAD^'
 
 # Keep this test last, as it changes the current branch
 cat >expect <<EOF
diff --git a/t/t7201-co.sh b/t/t7201-co.sh
index 3111baa..51a9928 100755
--- a/t/t7201-co.sh
+++ b/t/t7201-co.sh
@@ -335,6 +335,6 @@ test_expect_success \
     git checkout -b delete-me master &&
     rm .git/refs/heads/delete-me &&
     test refs/heads/delete-me = "$(git symbolic-ref HEAD)" &&
-    !(git checkout --track -b track)'
+    ! git checkout --track -b track'
 
 test_done
-- 
1.5.4.5


-- 
 http://www.mysza.eu.org/ | Everybody needs someone sure, someone true,
   PLD Linux developer    | Everybody needs some solid rock, I know I do.

             reply	other threads:[~2008-04-10  7:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10  7:25 Adam Golebiowski [this message]
2008-04-10  8:11 ` [PATCH] Kill bashizm in t/t3200-branch.sh and t/t7201-co.sh Jeff King
2008-04-10  8:34 ` Junio C Hamano

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=20080410072500.GA10188@mysza.eu.org \
    --to=adamg@pld-linux.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.