summaryrefslogtreecommitdiff
path: root/t/t7409-submodule-detached-worktree.sh
diff options
context:
space:
mode:
authorTorsten Bögershausen <tboegi@web.de>2013-04-26 09:18:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-26 16:54:31 (GMT)
commita8addfecf08ab9e3832eeac3f574fd0637a2970c (patch)
treeea61de15346cd86d4d3a3410f270e2566f03eca7 /t/t7409-submodule-detached-worktree.sh
parent86c5e148c9100634f0714e61ac85f90f409e12c7 (diff)
downloadgit-a8addfecf08ab9e3832eeac3f574fd0637a2970c.zip
git-a8addfecf08ab9e3832eeac3f574fd0637a2970c.tar.gz
git-a8addfecf08ab9e3832eeac3f574fd0637a2970c.tar.bz2
t7409: do not use export X=Y
The shell syntax "export X=Y A=B" is not understood by all shells. Signed-off-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7409-submodule-detached-worktree.sh')
-rwxr-xr-xt/t7409-submodule-detached-worktree.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/t/t7409-submodule-detached-worktree.sh b/t/t7409-submodule-detached-worktree.sh
index 2fec13d..c207171 100755
--- a/t/t7409-submodule-detached-worktree.sh
+++ b/t/t7409-submodule-detached-worktree.sh
@@ -23,7 +23,9 @@ test_expect_success 'submodule on detached working tree' '
mkdir home &&
(
cd home &&
- export GIT_WORK_TREE="$(pwd)" GIT_DIR="$(pwd)/.dotfiles" &&
+ GIT_WORK_TREE="$(pwd)" &&
+ GIT_DIR="$(pwd)/.dotfiles" &&
+ export GIT_WORK_TREE GIT_DIR &&
git clone --bare ../remote .dotfiles &&
git submodule add ../bundle1 .vim/bundle/sogood &&
test_commit "sogood" &&
@@ -39,7 +41,9 @@ test_expect_success 'submodule on detached working tree' '
(
cd home2 &&
git clone --bare ../remote .dotfiles &&
- export GIT_WORK_TREE="$(pwd)" GIT_DIR="$(pwd)/.dotfiles" &&
+ GIT_WORK_TREE="$(pwd)" &&
+ GIT_DIR="$(pwd)/.dotfiles" &&
+ export GIT_WORK_TREE GIT_DIR &&
git checkout master &&
git submodule update --init &&
(
@@ -55,7 +59,8 @@ test_expect_success 'submodule on detached working pointed by core.worktree' '
mkdir home3 &&
(
cd home3 &&
- export GIT_DIR="$(pwd)/.dotfiles" &&
+ GIT_DIR="$(pwd)/.dotfiles" &&
+ export GIT_DIR &&
git clone --bare ../remote "$GIT_DIR" &&
git config core.bare false &&
git config core.worktree .. &&
@@ -66,7 +71,8 @@ test_expect_success 'submodule on detached working pointed by core.worktree' '
) &&
(
cd home &&
- export GIT_DIR="$(pwd)/.dotfiles" &&
+ GIT_DIR="$(pwd)/.dotfiles" &&
+ export GIT_DIR &&
git config core.bare false &&
git config core.worktree .. &&
git pull &&