Fix the FCGI issue locally using the new Catalyst script stuff..
Tomas Doran [Sat, 28 Nov 2009 12:32:31 +0000 (12:32 +0000)]
lib/Gitalist/Script/FastCGI.pm [new file with mode: 0644]

diff --git a/lib/Gitalist/Script/FastCGI.pm b/lib/Gitalist/Script/FastCGI.pm
new file mode 100644 (file)
index 0000000..778760c
--- /dev/null
@@ -0,0 +1,15 @@
+package Gitalist::Script::FastCGI;
+use Moose;
+use namespace::autoclean;
+
+extends 'Catalyst::Script::FastCGI';
+
+# Only exists so that this horrible hack can happen..
+# This should be in FCGI.pm, see:
+# http://github.com/broquaint/Gitalist/issues#issue/9
+# http://rt.cpan.org/Public/Bug/Display.html?id=50972
+# http://goatse.co.uk/~bobtfish/Gitalist/script/gitalist.fcgi/commitdiff?p=FCGI;h=6bfbe42bbc9a29f4befee56d6dd7077922cae50e
+use FCGI;
+sub FCGI::Stream::FILENO { -2 }
+
+__PACKAGE__->meta->make_immutable;