[Xfce4-commits] <xfce-git-migration:master> gitosis repos are gone; don't look for them anymore

Brian J. Tarricone noreply at xfce.org
Wed Sep 23 01:10:01 CEST 2009


Updating branch refs/heads/master
         to 809473aa3fc781eb7ebd3589176d6f27323a4e7a (commit)
       from 46537f71a27061ad5a9ab472be12dfd37964ca95 (commit)

commit 809473aa3fc781eb7ebd3589176d6f27323a4e7a
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Tue Sep 22 23:07:20 2009 +0000

    gitosis repos are gone; don't look for them anymore

 gen-cgit-repos.rb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gen-cgit-repos.rb b/gen-cgit-repos.rb
index d9293b7..b20a3bf 100755
--- a/gen-cgit-repos.rb
+++ b/gen-cgit-repos.rb
@@ -5,7 +5,7 @@ require 'rubygems'
 require 'rexml/document'
 
 MAIN_REPOS_ROOT = '/var/git'
-USER_REPOS_ROOT = '/var/spool/gitosis/repositories'
+USER_REPOS_ROOT = nil
 CGIT_REPOS_FILE = '/etc/cgit/repos'
 
 BLACKLIST = [ 'gitosis-admin', 'svn.old', 'xfce-server-files' ]
@@ -109,6 +109,8 @@ end
 def process_dir(dir, prefix='', use_group=true)
   repos_str = ''
 
+  return '' if dir.nil?
+
   Dir.open(dir) do |d|
     d.each do |de|
       if de == 'hooks'



More information about the Xfce4-commits mailing list