{"thread":{"id":"33619","subject":"[PATCH 5/5] t7409: do not use export X=Y","startedAt":"2013-04-26T09:18:28Z","lastAt":"2013-04-26T09:18:28Z","messageCount":1,"participants":["Torsten Bögershausen"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"215581","messageId":"201304261118.28538.tboegi@web.de","threadId":"33619","inReplyTo":null,"subject":"[PATCH 5/5] t7409: do not use export X=Y","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2013-04-26T09:18:28Z","receivedAt":"2013-04-26T09:18:28Z","isPatch":true,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"The shell syntax \"export X=Y A=B\" is not understood by all shells.\nSplit the non portable line into separate lines like this:\nA=B\nX=Y\nexport A X\n\nSigned-off-by: Torsten Bögershausen <tboegi@web.de>\n---\n t/t7409-submodule-detached-worktree.sh | 14 ++++++++++----\n 1 file changed, 10 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t7409-submodule-detached-worktree.sh b/t/t7409-submodule-detached-worktree.sh\nindex 2fec13d..c207171 100755\n--- a/t/t7409-submodule-detached-worktree.sh\n+++ b/t/t7409-submodule-detached-worktree.sh\n@@ -23,7 +23,9 @@ test_expect_success 'submodule on detached working tree' '\n \tmkdir home &&\n \t(\n \t\tcd home &&\n-\t\texport GIT_WORK_TREE=\"$(pwd)\" GIT_DIR=\"$(pwd)/.dotfiles\" &&\n+\t\tGIT_WORK_TREE=\"$(pwd)\" &&\n+\t\tGIT_DIR=\"$(pwd)/.dotfiles\" &&\n+\t\texport GIT_WORK_TREE GIT_DIR &&\n \t\tgit clone --bare ../remote .dotfiles &&\n \t\tgit submodule add ../bundle1 .vim/bundle/sogood &&\n \t\ttest_commit \"sogood\" &&\n@@ -39,7 +41,9 @@ test_expect_success 'submodule on detached working tree' '\n \t(\n \t\tcd home2 &&\n \t\tgit clone --bare ../remote .dotfiles &&\n-\t\texport GIT_WORK_TREE=\"$(pwd)\" GIT_DIR=\"$(pwd)/.dotfiles\" &&\n+\t\tGIT_WORK_TREE=\"$(pwd)\" &&\n+\t\tGIT_DIR=\"$(pwd)/.dotfiles\" &&\n+\t\texport GIT_WORK_TREE GIT_DIR &&\n \t\tgit checkout master &&\n \t\tgit submodule update --init &&\n \t\t(\n@@ -55,7 +59,8 @@ test_expect_success 'submodule on detached working pointed by core.worktree' '\n \tmkdir home3 &&\n \t(\n \t\tcd home3 &&\n-\t\texport GIT_DIR=\"$(pwd)/.dotfiles\" &&\n+\t\tGIT_DIR=\"$(pwd)/.dotfiles\" &&\n+\t\texport GIT_DIR &&\n \t\tgit clone --bare ../remote \"$GIT_DIR\" &&\n \t\tgit config core.bare false &&\n \t\tgit config core.worktree .. &&\n@@ -66,7 +71,8 @@ test_expect_success 'submodule on detached working pointed by core.worktree' '\n \t) &&\n \t(\n \t\tcd home &&\n-\t\texport GIT_DIR=\"$(pwd)/.dotfiles\" &&\n+\t\tGIT_DIR=\"$(pwd)/.dotfiles\" &&\n+\t\texport GIT_DIR &&\n \t\tgit config core.bare false &&\n \t\tgit config core.worktree .. &&\n \t\tgit pull &&\n-- \n1.8.2.1.614.g66d7af5\n"}]}