Update so that you don't have a git browser pointed at your CPAN install directory...
Tomas Doran [Sun, 6 Dec 2009 13:40:05 +0000 (13:40 +0000)]
.gitignore
Changes
MANIFEST.SKIP
gitalist.conf
gitalist_local.conf [new file with mode: 0644]

index edd7225..b23a01a 100644 (file)
@@ -4,7 +4,6 @@ git-daemon-export-ok
 script/gitalist.cgi
 script/gitalist.fcgi
 META.yml
-gitalist_local.conf
 Makefile
 Makefile.old
 blib*
diff --git a/Changes b/Changes
index 1423de3..753186a 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 This file documents the revision history for Perl extension Gitalist.
 
+   - Change so that no default repos path is in the config when installed from
+     CPAN (when checked out of git, behavior of browsing AppDir/../ is
+     maintained).
    - Do not allow directory traversal via the p param.
 
 0.000001
index d8a656d..65a8ad3 100644 (file)
@@ -1,3 +1,4 @@
+^gitalist_local.conf$
 ^ISSUES$
 ^Gitalist-.*
 ^\.git
index 7a68c35..4dc1a6d 100644 (file)
@@ -2,7 +2,8 @@ name Gitalist
 
 <Model::GitRepos>
     #git /path/to/git
-    repo_dir __path_to(../)__
+    # Configure this to where your repositories are.
+    # repo_dir __path_to(../)__
 </Model::GitRepos>
 
 sitename "Gitalist presently"
diff --git a/gitalist_local.conf b/gitalist_local.conf
new file mode 100644 (file)
index 0000000..bd77889
--- /dev/null
@@ -0,0 +1,8 @@
+<Model::GitRepos>
+    # This is set so that if you run Gitalist out of a git checkout then you
+    # can browse the repositories the directory level above your checkout.
+    # This file is suppressed from the built dist by MANIFEST.SKIP, so you
+    # don't have this config if you install from CPAN.
+    repo_dir __path_to(../)__
+</Model::GitRepos>
+