diff options
author | Bryan Donlan <bdonlan@fushizen.net> | 2008-05-04 01:37:58 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-05 14:17:01 -0700 |
commit | 0e46e704626af5189c9c9ff2c0f348d2205c10f3 (patch) | |
tree | 5c1ad84d9adf5016bd1b8324da1c148025cd74df /t/t1500-rev-parse.sh | |
parent | cdf3ec01acb8785b8e61ce6e006c9c4c763de663 (diff) | |
download | git-0e46e704626af5189c9c9ff2c0f348d2205c10f3.tar.gz git-0e46e704626af5189c9c9ff2c0f348d2205c10f3.tar.xz |
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/t1500-rev-parse.sh')
-rwxr-xr-x | t/t1500-rev-parse.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/t/t1500-rev-parse.sh b/t/t1500-rev-parse.sh index 38a2bf09a..85da4caa7 100755 --- a/t/t1500-rev-parse.sh +++ b/t/t1500-rev-parse.sh @@ -51,8 +51,9 @@ test_rev_parse 'core.bare undefined' false false true mkdir work || exit 1 cd work || exit 1 -export GIT_DIR=../.git -export GIT_CONFIG="$(pwd)"/../.git/config +GIT_DIR=../.git +GIT_CONFIG="$(pwd)"/../.git/config +export GIT_DIR GIT_CONFIG git config core.bare false test_rev_parse 'GIT_DIR=../.git, core.bare = false' false false true '' @@ -64,8 +65,8 @@ git config --unset core.bare test_rev_parse 'GIT_DIR=../.git, core.bare undefined' false false true '' mv ../.git ../repo.git || exit 1 -export GIT_DIR=../repo.git -export GIT_CONFIG="$(pwd)"/../repo.git/config +GIT_DIR=../repo.git +GIT_CONFIG="$(pwd)"/../repo.git/config git config core.bare false test_rev_parse 'GIT_DIR=../repo.git, core.bare = false' false false true '' |