t/gitweb-lib.sh: Use GIT_BUILD_DIR
Use "$GIT_BUILD_DIR" instead of "$TEST_DIRECTORY/.." (both defined in t/test-lib.sh) in t/gitweb-lib.sh. It better describes the intent. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3b3a8ed4be
commit
b5d3450c91
@ -19,9 +19,9 @@ our \$site_name = '[localhost]';
|
|||||||
our \$site_header = '';
|
our \$site_header = '';
|
||||||
our \$site_footer = '';
|
our \$site_footer = '';
|
||||||
our \$home_text = 'indextext.html';
|
our \$home_text = 'indextext.html';
|
||||||
our @stylesheets = ('file:///$TEST_DIRECTORY/../gitweb/static/gitweb.css');
|
our @stylesheets = ('file:///$GIT_BUILD_DIR/gitweb/static/gitweb.css');
|
||||||
our \$logo = 'file:///$TEST_DIRECTORY/../gitweb/static/git-logo.png';
|
our \$logo = 'file:///$GIT_BUILD_DIR/gitweb/static/git-logo.png';
|
||||||
our \$favicon = 'file:///$TEST_DIRECTORY/../gitweb/static/git-favicon.png';
|
our \$favicon = 'file:///$GIT_BUILD_DIR/gitweb/static/git-favicon.png';
|
||||||
our \$projects_list = '';
|
our \$projects_list = '';
|
||||||
our \$export_ok = '';
|
our \$export_ok = '';
|
||||||
our \$strict_export = '';
|
our \$strict_export = '';
|
||||||
@ -38,7 +38,7 @@ gitweb_run () {
|
|||||||
GATEWAY_INTERFACE='CGI/1.1'
|
GATEWAY_INTERFACE='CGI/1.1'
|
||||||
HTTP_ACCEPT='*/*'
|
HTTP_ACCEPT='*/*'
|
||||||
REQUEST_METHOD='GET'
|
REQUEST_METHOD='GET'
|
||||||
SCRIPT_NAME="$TEST_DIRECTORY/../gitweb/gitweb.perl"
|
SCRIPT_NAME="$GIT_BUILD_DIR/gitweb/gitweb.perl"
|
||||||
QUERY_STRING=""$1""
|
QUERY_STRING=""$1""
|
||||||
PATH_INFO=""$2""
|
PATH_INFO=""$2""
|
||||||
export GATEWAY_INTERFACE HTTP_ACCEPT REQUEST_METHOD \
|
export GATEWAY_INTERFACE HTTP_ACCEPT REQUEST_METHOD \
|
||||||
|
Loading…
Reference in New Issue
Block a user