Changed the dir structure so it looks a bit more distro-like.
[catagits/Gitalist.git] / lib / Gitalist.pm
similarity index 96%
rename from Gitalist/lib/Gitalist.pm
rename to lib/Gitalist.pm
index 173a1fc..7538376 100644 (file)
@@ -19,6 +19,9 @@ use Catalyst qw/-Debug
                 Static::Simple/;
 our $VERSION = '0.01';
 
+# Bring in the libified gitweb.cgi.
+use gitweb;
+
 # Configure the application.
 #
 # Note that settings in gitalist.conf (or other external
@@ -36,8 +39,6 @@ __PACKAGE__->config(
 # Start the application
 __PACKAGE__->setup();
 
-require '/var/www/cgi-bin/gitalist/gitweb.cgi';
-
 =head1 NAME
 
 Gitalist - Catalyst based application