diff options
author | Charlie <root@thewalter.net> | 2010-10-01 02:05:04 +0000 |
---|---|---|
committer | Charlie <root@thewalter.net> | 2010-10-01 02:05:04 +0000 |
commit | abfc535827808489d6ee515989d1d38cc916c342 (patch) | |
tree | cdfb44f339a582fcd8a03c599ab2d103f8ef64d8 | |
parent | fdb5c3ea557ddaeed35f779f62d4937c9ccd2cee (diff) |
Support git-description file
-rwxr-xr-x | install-repos | 10 |
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 |