summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers/test-hg-hg-git.sh
diff options
context:
space:
mode:
authorTorsten Bögershausen <tboegi@web.de>2013-04-26 09:17:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-26 16:53:52 (GMT)
commit86c5e148c9100634f0714e61ac85f90f409e12c7 (patch)
tree43b455d949d51dcdea388ecde7c1d92ad9e9eeb9 /contrib/remote-helpers/test-hg-hg-git.sh
parent93cd8d970b327e916b6a0eca6377fd357d05b15c (diff)
downloadgit-86c5e148c9100634f0714e61ac85f90f409e12c7.zip
git-86c5e148c9100634f0714e61ac85f90f409e12c7.tar.gz
git-86c5e148c9100634f0714e61ac85f90f409e12c7.tar.bz2
test-hg-hg-git.sh: do not use export X=Y
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>
Diffstat (limited to 'contrib/remote-helpers/test-hg-hg-git.sh')
-rwxr-xr-xcontrib/remote-helpers/test-hg-hg-git.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/remote-helpers/test-hg-hg-git.sh b/contrib/remote-helpers/test-hg-hg-git.sh
index 7e3967f..9aaf043 100755
--- a/contrib/remote-helpers/test-hg-hg-git.sh
+++ b/contrib/remote-helpers/test-hg-hg-git.sh
@@ -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" &&