aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorBen Jackson <ben@ben.com>2009-04-18 20:42:07 -0700
committerJunio C Hamano <gitster@pobox.com>2009-04-18 21:37:46 -0700
commitea10b60c910e4a23483f47f17becc5e58f07ebe9 (patch)
tree6ea690864253a52b15cf35c1a2a4dd5ee20e9c99 /t
parent77b96d6dbf65f736a63b8a0bb5f810edbf895a09 (diff)
downloadgit-ea10b60c910e4a23483f47f17becc5e58f07ebe9.tar.gz
git-ea10b60c910e4a23483f47f17becc5e58f07ebe9.tar.xz
Work around ash "alternate value" expansion bug
Ash (used as /bin/sh on many distros) has a shell expansion bug for the form ${var:+word word}. The result is a single argument "word word". Work around by using ${var:+word} ${var:+word} or equivalent. Signed-off-by: Ben Jackson <ben@ben.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t7400-submodule-basic.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index af690ec6c..0f2ccc6cf 100755
--- a/t/t7400-submodule-basic.sh
+++ b/t/t7400-submodule-basic.sh
@@ -64,6 +64,16 @@ test_expect_success 'submodule add' '
)
'
+test_expect_success 'submodule add --branch' '
+ (
+ cd addtest &&
+ git submodule add -b initial "$submodurl" submod-branch &&
+ git submodule init &&
+ cd submod-branch &&
+ git branch | grep initial
+ )
+'
+
test_expect_success 'submodule add with ./ in path' '
(
cd addtest &&