diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-09-21 18:48:19 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-09-21 18:48:19 +0200 |
commit | 9d9fe107d0de34602775cbee2ca5208d604e0c5b (patch) | |
tree | b269e53cc63202c5e4114d731f912f7b33676be7 /roles/git/files/usr/lib/cgi-bin | |
parent | f13bae3697d23437af6af325262e75281dec2e30 (diff) |
Replace gitweb with cgit.
Diffstat (limited to 'roles/git/files/usr/lib/cgi-bin')
-rwxr-xr-x | roles/git/files/usr/lib/cgi-bin/gitweb-wrapper.fcgi | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/roles/git/files/usr/lib/cgi-bin/gitweb-wrapper.fcgi b/roles/git/files/usr/lib/cgi-bin/gitweb-wrapper.fcgi deleted file mode 100755 index a7eea8c..0000000 --- a/roles/git/files/usr/lib/cgi-bin/gitweb-wrapper.fcgi +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/perl -# gitweb.cgi wrapper that fixes the UTF-8 problem with fastcgi - -# Local redefinition of FCGI::Stream::PRINT -use Encode; -use FCGI; - -our $enc = Encode::find_encoding('UTF-8'); -our $org = \&FCGI::Stream::PRINT; -no warnings 'redefine'; - -local *FCGI::Stream::PRINT = sub { - my @OUTPUT = @_; - for (my $i = 1; $i < @_; $i++) { - $OUTPUT[$i] = $enc->encode($_[$i], Encode::FB_CROAK|Encode::LEAVE_SRC); - } - @_ = @OUTPUT; - goto $org; -}; - -# Execute original script -do "/usr/lib/cgi-bin/gitweb.cgi"; |