summaryrefslogtreecommitdiff
path: root/install-repos
diff options
context:
space:
mode:
authorCharlie <root@thewalter.net>2010-10-01 02:05:04 +0000
committerCharlie <root@thewalter.net>2010-10-01 02:05:04 +0000
commitabfc535827808489d6ee515989d1d38cc916c342 (patch)
treecdfb44f339a582fcd8a03c599ab2d103f8ef64d8 /install-repos
parentfdb5c3ea557ddaeed35f779f62d4937c9ccd2cee (diff)
Support git-description file
Diffstat (limited to 'install-repos')
-rwxr-xr-xinstall-repos10
1 files changed, 9 insertions, 1 deletions
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