Skip to contentSkip to conversation

gitweb: Remove CGI::Carp::set_programname() call from t9500 gitweb test

PATCH In review Jakub Narebski 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitweb: Remove CGI::Carp::set_programname() call from t9500 gitweb test

It does appear to do nothing; gitweb is run as standalone program and not as CGI script in this test. This call caused problems later.

---
 t/t9500-gitweb-standalone-no-errors.sh |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
t/t9500-gitweb-standalone-no-errors.sh +0 -1
index f7bad5b..1bf0988 100755
@@ -31,7 +31,6 @@ our \$projects_list = "";
 our \$export_ok = "";
 our \$strict_export = "";
 
-CGI::Carp::set_programname("gitweb/gitweb.cgi");
 EOF
 
 	cat >.git/description <<EOF
Signature · 1 line
1.5.3.5
#1 lore raw
Quoted 2 lines · Jakub Narebski

It does appear to do nothing; gitweb is run as standalone program and not as CGI script in this test. This call caused problems later.

Care to describe "later problems" a bit more?

Quoted 20 lines
---
 t/t9500-gitweb-standalone-no-errors.sh |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
t/t9500-gitweb-standalone-no-errors.sh +0 -1
index f7bad5b..1bf0988 100755
@@ -31,7 +31,6 @@ our \$projects_list = "";
 our \$export_ok = "";
 our \$strict_export = "";
 
-CGI::Carp::set_programname("gitweb/gitweb.cgi");
 EOF
 
 	cat >.git/description <<EOF
Signature · 1 line
1.5.3.5
#2 lore raw
Quoted 6 lines · Junio C Hamano
Quoted 2 lines · Jakub Narebski

It does appear to do nothing; gitweb is run as standalone program and not as CGI script in this test. This call caused problems later.

Care to describe "later problems" a bit more?

Sorry about that. The problems were while creating yet-to-be send patch
"gitweb: Add tests for overriding gitweb config with repo config"
Perhaps not in the current version. I forgot details.

Perhaps last sentence "This call caused problems later." should be simply removed from commit message.

Signature · 2 lines
Jakub Narebski
Poland