diff options
Diffstat (limited to 'install-repos')
-rwxr-xr-x | install-repos | 14 |
1 files changed, 14 insertions, 0 deletions
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 |