test-hg-hg-git.sh: do not use export X=Y
authorTorsten Bögershausen <tboegi@web.de>
Fri, 26 Apr 2013 09:17:43 +0000 (11:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Apr 2013 16:53:52 +0000 (09:53 -0700)
The shell syntax "export X=Y" is not understood by all shells.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/test-hg-hg-git.sh
index 7e3967f5b6f0c19939bf1c0c30be0d756ec6aa04..9aaf0436695c940ff8c1aa51118d66f9a661efd9 100755 (executable)
@@ -101,10 +101,11 @@ setup () {
        git config --global receive.denycurrentbranch warn
        git config --global remote-hg.hg-git-compat true
 
-       export HGEDITOR=/usr/bin/true
+       HGEDITOR=/usr/bin/true
 
-       export GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0230"
-       export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"
+       GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0230"
+       GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"
+       export HGEDITOR GIT_AUTHOR_DATE GIT_COMMITTER_DATE
 }
 
 setup
@@ -295,7 +296,8 @@ test_expect_success 'encoding' '
        git add alpha &&
        git commit -m "add älphà" &&
 
-       export GIT_AUTHOR_NAME="tést èncödîng" &&
+       GIT_AUTHOR_NAME="tést èncödîng" &&
+       export GIT_AUTHOR_NAME &&
        echo beta > beta &&
        git add beta &&
        git commit -m "add beta" &&