t9501: do not use export X=Y

The shell syntax "export X=Y" is not understood by all shells. Signed-off-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Torsten Bögershausen committed Apr 26, 2013 at 11:18 UTC d87ec816cd2459a27c1d22ae3947d67c8b121bd1
1 file changed +10 -5
t/t9501-gitweb-standalone-http-status.sh
+10 -5
@@ -130,7 +130,8 @@ test_expect_success DATE_PARSER 'modification: feed last-modified' '
130 test_debug 'cat gitweb.headers'
131
132 test_expect_success DATE_PARSER 'modification: feed if-modified-since (modified)' '
133 - export HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
133 + HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
134 + export HTTP_IF_MODIFIED_SINCE &&
135 test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
136 gitweb_run "p=.git;a=atom;h=master" &&
137 grep "Status: 200 OK" gitweb.headers
@@ -138,7 +139,8 @@ test_expect_success DATE_PARSER 'modification: feed if-modified-since (modified)
139 test_debug 'cat gitweb.headers'
140
141 test_expect_success DATE_PARSER 'modification: feed if-modified-since (unmodified)' '
141 - export HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
142 + HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
143 + export HTTP_IF_MODIFIED_SINCE &&
144 test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
145 gitweb_run "p=.git;a=atom;h=master" &&
146 grep "Status: 304 Not Modified" gitweb.headers
@@ -153,7 +155,8 @@ test_expect_success DATE_PARSER 'modification: snapshot last-modified' '
155 test_debug 'cat gitweb.headers'
156
157 test_expect_success DATE_PARSER 'modification: snapshot if-modified-since (modified)' '
156 - export HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
158 + HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
159 + export HTTP_IF_MODIFIED_SINCE &&
160 test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
161 gitweb_run "p=.git;a=snapshot;h=master;sf=tgz" &&
162 grep "Status: 200 OK" gitweb.headers
@@ -161,7 +164,8 @@ test_expect_success DATE_PARSER 'modification: snapshot if-modified-since (modif
164 test_debug 'cat gitweb.headers'
165
166 test_expect_success DATE_PARSER 'modification: snapshot if-modified-since (unmodified)' '
164 - export HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
167 + HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
168 + export HTTP_IF_MODIFIED_SINCE &&
169 test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
170 gitweb_run "p=.git;a=snapshot;h=master;sf=tgz" &&
171 grep "Status: 304 Not Modified" gitweb.headers
@@ -170,7 +174,8 @@ test_debug 'cat gitweb.headers'
174
175 test_expect_success DATE_PARSER 'modification: tree snapshot' '
176 ID=`git rev-parse --verify HEAD^{tree}` &&
173 - export HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
177 + HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
178 + export HTTP_IF_MODIFIED_SINCE &&
179 test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
180 gitweb_run "p=.git;a=snapshot;h=$ID;sf=tgz" &&
181 grep "Status: 200 OK" gitweb.headers &&