diff options
author | Bryan Donlan <bdonlan@fushizen.net> | 2008-05-04 07:37:58 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-05 23:17:01 +0200 |
commit | 0e46e704626af5189c9c9ff2c0f348d2205c10f3 (patch) | |
tree | 5c1ad84d9adf5016bd1b8324da1c148025cd74df /t/t5500-fetch-pack.sh | |
parent | lib-git-svn.sh: Fix quoting issues with paths containing shell metacharacters (diff) | |
download | git-0e46e704626af5189c9c9ff2c0f348d2205c10f3.tar.xz git-0e46e704626af5189c9c9ff2c0f348d2205c10f3.zip |
Don't use the 'export NAME=value' in the test scripts.
This form is not portable across all shells, so replace instances of:
export FOO=bar
with:
FOO=bar
export FOO
Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5500-fetch-pack.sh')
-rwxr-xr-x | t/t5500-fetch-pack.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh index 788b4a5aae..1700d0794c 100755 --- a/t/t5500-fetch-pack.sh +++ b/t/t5500-fetch-pack.sh @@ -31,7 +31,7 @@ add () { sec=$(($sec+1)) commit=$(echo "$text" | GIT_AUTHOR_DATE=$sec \ git commit-tree $tree $parents 2>>log2.txt) - export $name=$commit + eval "$name=$commit; export $name" echo $commit > .git/refs/heads/$branch eval ${branch}TIP=$commit } |