提交 a8addfec 编写于 作者: T Torsten Bögershausen 提交者: Junio C Hamano

t7409: do not use export X=Y

The shell syntax "export X=Y A=B" is not understood by all shells.
Signed-off-by: NTorsten Bögershausen <tboegi@web.de>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 86c5e148
......@@ -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 &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册