diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2012-02-12 01:05:12 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-13 02:29:15 -0800 |
commit | 1f5ad6b1a7538d6d489ba97c46455efc0bc3266e (patch) | |
tree | 3b376756d870082aab40984fb6e80bc674eb4888 /t/t5560-http-backend-noserver.sh | |
parent | d24fbca7a5dcce2eb5e41266dd1be111b47a730c (diff) | |
download | git-1f5ad6b1a7538d6d489ba97c46455efc0bc3266e.tar.gz |
t: use sane_unset instead of unset
Change several tests to use the sane_unset function introduced in
v1.7.3.1-35-g00648ba instead of the built-in unset function.
This fixes a failure I was having on t9130-git-svn-authors-file.sh on
Solaris, and prevents several other issues from occurring.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5560-http-backend-noserver.sh')
-rwxr-xr-x | t/t5560-http-backend-noserver.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t5560-http-backend-noserver.sh b/t/t5560-http-backend-noserver.sh index 0ad7ce07c4..ef98d95e00 100755 --- a/t/t5560-http-backend-noserver.sh +++ b/t/t5560-http-backend-noserver.sh @@ -17,7 +17,7 @@ run_backend() { GET() { REQUEST_METHOD="GET" && export REQUEST_METHOD && run_backend "/repo.git/$1" && - unset REQUEST_METHOD && + sane_unset REQUEST_METHOD && if ! grep "Status" act.out >act then printf "Status: 200 OK\r\n" >act @@ -30,8 +30,8 @@ POST() { REQUEST_METHOD="POST" && export REQUEST_METHOD && CONTENT_TYPE="application/x-$1-request" && export CONTENT_TYPE && run_backend "/repo.git/$1" "$2" && - unset REQUEST_METHOD && - unset CONTENT_TYPE && + sane_unset REQUEST_METHOD && + sane_unset CONTENT_TYPE && if ! grep "Status" act.out >act then printf "Status: 200 OK\r\n" >act |