summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-02-18 19:17:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-02-18 19:17:27 (GMT)
commit91e80b984e0afda37d288e550fb5832d2b71568c (patch)
treee1fc5942bd993cf558dd849654ce1429a22ca1ec
parentd61027b21f403a74ba16191756d22717a2e95bd4 (diff)
downloadgit-91e80b984e0afda37d288e550fb5832d2b71568c.zip
git-91e80b984e0afda37d288e550fb5832d2b71568c.tar.gz
git-91e80b984e0afda37d288e550fb5832d2b71568c.tar.bz2
tests: fix "export var=val"
Some shells do not like "export var=val"; the right way to write it is to do an assignment and then export just the variable name. Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t9301-fast-export.sh4
-rw-r--r--t/test-lib.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/t/t9301-fast-export.sh b/t/t9301-fast-export.sh
index 9985721..86c3760 100755
--- a/t/t9301-fast-export.sh
+++ b/t/t9301-fast-export.sh
@@ -185,8 +185,8 @@ test_expect_success 'submodule fast-export | fast-import' '
'
-export GIT_AUTHOR_NAME='A U Thor'
-export GIT_COMMITTER_NAME='C O Mitter'
+GIT_AUTHOR_NAME='A U Thor'; export GIT_AUTHOR_NAME
+GIT_COMMITTER_NAME='C O Mitter'; export GIT_COMMITTER_NAME
test_expect_success 'setup copies' '
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 22ed448..fc0e193 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -82,7 +82,7 @@ do
-i|--i|--im|--imm|--imme|--immed|--immedi|--immedia|--immediat|--immediate)
immediate=t; shift ;;
-l|--l|--lo|--lon|--long|--long-|--long-t|--long-te|--long-tes|--long-test|--long-tests)
- export GIT_TEST_LONG=t; shift ;;
+ GIT_TEST_LONG=t; export GIT_TEST_LONG; shift ;;
-h|--h|--he|--hel|--help)
help=t; shift ;;
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)