Skip to content

Commit

Permalink
test-hg-bidi.sh: do not use export X=Y
Browse files Browse the repository at this point in the history
The shell syntax "export X=Y A=B" is not understood by all shells.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Torsten Bögershausen authored and Junio C Hamano committed Apr 26, 2013
1 parent d87ec81 commit 93cd8d9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions contrib/remote-helpers/test-hg-bidi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ setup () {
) >> "$HOME"/.hgrc &&
git config --global remote-hg.hg-git-compat true

export HGEDITOR=/usr/bin/true

export GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0230"
export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"
HGEDITOR=/usr/bin/true
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
Expand All @@ -85,7 +85,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" &&
Expand Down

0 comments on commit 93cd8d9

Please sign in to comment.