Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t7409: do not use export X=Y
author
Torsten Bögershausen
<tboegi@web.de>
Fri, 26 Apr 2013 09:18:28 +0000
(11:18 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 26 Apr 2013 16:54:31 +0000
(09:54 -0700)
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>
t/t7409-submodule-detached-worktree.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (from parent 1:
86c5e14
)
diff --git
a/t/t7409-submodule-detached-worktree.sh
b/t/t7409-submodule-detached-worktree.sh
index 2fec13dcd32a551d4fb82d0bea185ba6b77c9e14..c20717181e95fc74738bdf53aa3e0b0797d77d6a 100755
(executable)
--- 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 &&
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" &&
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 &&
(
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 &&
(
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 &&
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 .. &&
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 &&
) &&
(
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 &&
git config core.bare false &&
git config core.worktree .. &&
git pull &&