6 [ "$arg" = "--fresh" ] && fresh=true
9 for repo in /srv/git/*.git; do
10 repo="$(basename "$repo" | cut -f 1 -d '.')"
13 && echo "Deleting HTML for $repo." \
14 && rm -fr "/var/www/git/$repo"
15 mkdir -p "/var/www/git/$repo"
16 cd "/var/www/git/$repo"
18 [ ! -f style.css ] && ln -s ../style.css ./
19 [ ! -f favicon.png ] && ln -s ../favicon.png ./
20 [ ! -f logo.png ] && ln -s ../logo.png ./
22 echo "git://git.knutsen.co/$repo" > "/srv/git/$repo.git/url"
24 stagit "/srv/git/$repo.git"
27 stagit-index /srv/git/*.git > /var/www/git/index.html