@matheusbsbs / matheus-bagliano / commits / b5d3450c91
Fork 0

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>

Jakub Narebski committed Sep 12, 2010 at 11:41 UTC b5d3450c914a51a6543d517c428fd41a670a113d
1 file changed +4 -4
t/gitweb-lib.sh
+4 -4
@@ -19,9 +19,9 @@ our \$site_name = '[localhost]';
19 our \$site_header = '';
20 our \$site_footer = '';
21 our \$home_text = 'indextext.html';
22 -our @stylesheets = ('file:///$TEST_DIRECTORY/../gitweb/static/gitweb.css');
23 -our \$logo = 'file:///$TEST_DIRECTORY/../gitweb/static/git-logo.png';
24 -our \$favicon = 'file:///$TEST_DIRECTORY/../gitweb/static/git-favicon.png';
22 +our @stylesheets = ('file:///$GIT_BUILD_DIR/gitweb/static/gitweb.css');
23 +our \$logo = 'file:///$GIT_BUILD_DIR/gitweb/static/git-logo.png';
24 +our \$favicon = 'file:///$GIT_BUILD_DIR/gitweb/static/git-favicon.png';
25 our \$projects_list = '';
26 our \$export_ok = '';
27 our \$strict_export = '';
@@ -38,7 +38,7 @@ gitweb_run () {
38 GATEWAY_INTERFACE='CGI/1.1'
39 HTTP_ACCEPT='*/*'
40 REQUEST_METHOD='GET'
41 - SCRIPT_NAME="$TEST_DIRECTORY/../gitweb/gitweb.perl"
41 + SCRIPT_NAME="$GIT_BUILD_DIR/gitweb/gitweb.perl"
42 QUERY_STRING=""$1""
43 PATH_INFO=""$2""
44 export GATEWAY_INTERFACE HTTP_ACCEPT REQUEST_METHOD \