From 2d1c3c34407d4f1ad97be02d8c3ab79f5209c710 Mon Sep 17 00:00:00 2001 From: Charlie Date: Fri, 30 Oct 2009 16:55:38 -0600 Subject: Implement cgit support in our script --- install-repos | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'install-repos') diff --git a/install-repos b/install-repos index 92d7dbe..d070ba1 100755 --- a/install-repos +++ b/install-repos @@ -7,6 +7,8 @@ HOOKS="pre-receive" dir=`dirname $0` BASE=`realpath $dir` +echo "# This file is auto-generated" > $DIR/cgit-repo-rc + for git in $REPOS; do if [ -d "$git" ]; then cd $git @@ -29,6 +31,18 @@ for git in $REPOS; do git config core.sharedRepository=0660 || true git config receive.denyNonFastforwards=true || true touch git-daemon-export-ok + + # Add to cgit list + ( + if [ -f cgit-repo-rc ]; then + include=$git/cgit-repo-rc + else + echo "repo.url=$simple" + echo "repo.path=$git" + echo "repo.desc=$simple" + fi + echo + ) >> $DIR/cgit-repo-rc fi done -- cgit v1.2.3