Straightened out some rough edges and added the dodgy templates/gitweb.tt2.
Dan Brook [Tue, 8 Sep 2009 14:08:39 +0000 (15:08 +0100)]
README
gitalist.conf
lib/Gitalist/Model/Git.pm
lib/gitweb.pm
templates/gitweb.tt2 [new file with mode: 0644]

diff --git a/README b/README
index 82e5b2d..dd4cbe5 100644 (file)
--- a/README
+++ b/README
@@ -17,8 +17,9 @@ gitweb.cgi functions.
 
 USAGE
 
-To get Gitalist up and running just set $projectroot in gitweb.conf to point
-to the directory that contains your repositories. With that done just run:
+To get Gitalist up and running just set projectroot & repo_dir (one in
+the same unfortunately at this point) in gitalist.conf to point to the
+directory that contains your repositories. With that done just run:
 
   perl script/gitalist_server.pl
 
index f3080de..81b1fb4 100644 (file)
@@ -1,6 +1,6 @@
 name Gitalist
 
-git /home/dbrook/apps/bin/git
+#git /path/to/git
 projectroot /home/dbrook/dev
 repo_dir /home/dbrook/dev
 
index 7d98137..009634b 100644 (file)
@@ -110,7 +110,7 @@ sub list_projects {
         };
     }
 
-    return \@ret;
+    return [sort { $a->{name} cmp $b->{name} } @ret];
 }
 
 sub run_cmd {
index 46e535d..d110b76 100755 (executable)
@@ -85,7 +85,7 @@ sub main {
        chomp($GIT);
 
        # absolute fs-path which will be prepended to the project path
-       our $projectroot = "/pub/scm";
+       #our $projectroot = "/pub/scm";
 
        # target of the home link on top of all pages
        our $home_link = $my_uri || "/";
diff --git a/templates/gitweb.tt2 b/templates/gitweb.tt2
new file mode 100644 (file)
index 0000000..dd1a5ed
--- /dev/null
@@ -0,0 +1 @@
+[% gitweb_output %]