{"thread":{"id":"33615","subject":"[PATCH 4/5] test-hg-hg-git.sh: do not use export X=Y","startedAt":"2013-04-26T09:17:43Z","lastAt":"2013-04-26T09:17:43Z","messageCount":1,"participants":["Torsten Bögershausen"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"215577","messageId":"201304261117.44336.tboegi@web.de","threadId":"33615","inReplyTo":null,"subject":"[PATCH 4/5] test-hg-hg-git.sh: do not use export X=Y","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2013-04-26T09:17:43Z","receivedAt":"2013-04-26T09:17:43Z","isPatch":true,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"The shell syntax \"export X=Y\" is not understood by all shells.\nSplit the non portable line into separate lines like this:\nX=Y\nexport X\n\nSigned-off-by: Torsten Bögershausen <tboegi@web.de>\n---\n contrib/remote-helpers/test-hg-hg-git.sh | 10 ++++++----\n 1 file changed, 6 insertions(+), 4 deletions(-)\n\ndiff --git a/contrib/remote-helpers/test-hg-hg-git.sh b/contrib/remote-helpers/test-hg-hg-git.sh\nindex 253e65a..8440341 100755\n--- a/contrib/remote-helpers/test-hg-hg-git.sh\n+++ b/contrib/remote-helpers/test-hg-hg-git.sh\n@@ -103,10 +103,11 @@ setup () {\n \tgit config --global receive.denycurrentbranch warn\n \tgit config --global remote-hg.hg-git-compat true\n \n-\texport HGEDITOR=/usr/bin/true\n+\tHGEDITOR=/usr/bin/true\n \n-\texport GIT_AUTHOR_DATE=\"2007-01-01 00:00:00 +0230\"\n-\texport GIT_COMMITTER_DATE=\"$GIT_AUTHOR_DATE\"\n+\tGIT_AUTHOR_DATE=\"2007-01-01 00:00:00 +0230\"\n+\tGIT_COMMITTER_DATE=\"$GIT_AUTHOR_DATE\"\n+\texport HGEDITOR GIT_AUTHOR_DATE GIT_COMMITTER_DATE\n }\n \n setup\n@@ -296,7 +297,8 @@ test_expect_success 'encoding' '\n \tgit add alpha &&\n \tgit commit -m \"add älphà\" &&\n \n-\texport GIT_AUTHOR_NAME=\"tést èncödîng\" &&\n+\tGIT_AUTHOR_NAME=\"tést èncödîng\" &&\n+\texport GIT_AUTHOR_NAME &&\n \techo beta > beta &&\n \tgit add beta &&\n \tgit commit -m \"add beta\" &&\n-- \n1.8.2.1.614.g66d7af5\n"}]}