From abfc535827808489d6ee515989d1d38cc916c342 Mon Sep 17 00:00:00 2001 From: Charlie Date: Fri, 1 Oct 2010 02:05:04 +0000 Subject: Support git-description file --- install-repos | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install-repos b/install-repos index d817e2b..c8792d2 100755 --- a/install-repos +++ b/install-repos @@ -34,15 +34,23 @@ for git in $REPOS; do if [ ! -f git-receive-allow ]; then touch git-receive-allow fi + if [ ! -f git-description ]; then + touch git-description + fi # Add to cgit list ( if [ -f cgit-repo-rc ]; then include=$git/cgit-repo-rc else + desc=$(cat git-description) + if [ -z "$desc" ]; then + desc="$simple" + fi echo "repo.url=$simple" echo "repo.path=$git" - echo "repo.desc=$simple" + echo "repo.desc=$desc" + echo "repo.owner=Stef" fi echo ) >> $DIR/cgit-repo-rc -- cgit v1.2.3