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>

Torsten Bögershausen committed Apr 26, 2013 at 11:18 UTC a8addfecf08ab9e3832eeac3f574fd0637a2970c
1 file changed +10 -4
t/t7409-submodule-detached-worktree.sh
+10 -4
@@ -23,7 +23,9 @@ test_expect_success 'submodule on detached working tree' '
23 mkdir home &&
24 (
25 cd home &&
26 - export GIT_WORK_TREE="$(pwd)" GIT_DIR="$(pwd)/.dotfiles" &&
26 + GIT_WORK_TREE="$(pwd)" &&
27 + GIT_DIR="$(pwd)/.dotfiles" &&
28 + export GIT_WORK_TREE GIT_DIR &&
29 git clone --bare ../remote .dotfiles &&
30 git submodule add ../bundle1 .vim/bundle/sogood &&
31 test_commit "sogood" &&
@@ -39,7 +41,9 @@ test_expect_success 'submodule on detached working tree' '
41 (
42 cd home2 &&
43 git clone --bare ../remote .dotfiles &&
42 - export GIT_WORK_TREE="$(pwd)" GIT_DIR="$(pwd)/.dotfiles" &&
44 + GIT_WORK_TREE="$(pwd)" &&
45 + GIT_DIR="$(pwd)/.dotfiles" &&
46 + export GIT_WORK_TREE GIT_DIR &&
47 git checkout master &&
48 git submodule update --init &&
49 (
@@ -55,7 +59,8 @@ test_expect_success 'submodule on detached working pointed by core.worktree' '
59 mkdir home3 &&
60 (
61 cd home3 &&
58 - export GIT_DIR="$(pwd)/.dotfiles" &&
62 + GIT_DIR="$(pwd)/.dotfiles" &&
63 + export GIT_DIR &&
64 git clone --bare ../remote "$GIT_DIR" &&
65 git config core.bare false &&
66 git config core.worktree .. &&
@@ -66,7 +71,8 @@ test_expect_success 'submodule on detached working pointed by core.worktree' '
71 ) &&
72 (
73 cd home &&
69 - export GIT_DIR="$(pwd)/.dotfiles" &&
74 + GIT_DIR="$(pwd)/.dotfiles" &&
75 + export GIT_DIR &&
76 git config core.bare false &&
77 git config core.worktree .. &&
78 git pull &&