Skip to content

Commit 86c5e14

Browse files
tboegigitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 93cd8d9 commit 86c5e14

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

contrib/remote-helpers/test-hg-hg-git.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ setup () {
101101
git config --global receive.denycurrentbranch warn
102102
git config --global remote-hg.hg-git-compat true
103103

104-
export HGEDITOR=/usr/bin/true
104+
HGEDITOR=/usr/bin/true
105105

106-
export GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0230"
107-
export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"
106+
GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0230"
107+
GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"
108+
export HGEDITOR GIT_AUTHOR_DATE GIT_COMMITTER_DATE
108109
}
109110

110111
setup
@@ -295,7 +296,8 @@ test_expect_success 'encoding' '
295296
git add alpha &&
296297
git commit -m "add älphà" &&
297298
298-
export GIT_AUTHOR_NAME="tést èncödîng" &&
299+
GIT_AUTHOR_NAME="tést èncödîng" &&
300+
export GIT_AUTHOR_NAME &&
299301
echo beta > beta &&
300302
git add beta &&
301303
git commit -m "add beta" &&

0 commit comments

Comments
 (0)