clone.sh: unset gitweb.lastgc on success
[girocco.git] / gitweb / genindex.sh
blobcfb13fb2c8ba45afd9e2e200059ea0a50f0631ff
1 #!/bin/bash
3 # genindex - Generate gitweb project list from Girocco's
5 . @basedir@/shlib.sh
7 set -e
9 # gitweb calls CGI::Util::unescape on both the path and owner, but the only
10 # character we allow that needs to be escaped is '+' which is allowed in
11 # both the owner email and in the project name. Otherwise '+' will be
12 # displayed as a ' ' in the owner email and will cause a project name
13 # containing it to be omitted from the project list page.
14 get_repo_list | while read proj; do
15 echo "$proj.git $(cd "$cfg_reporoot/$proj.git" && config_get owner)"
16 done | sed -e 's/+/%2B/g' >/tmp/gitweb.list.$$
17 mv -f /tmp/gitweb.list.$$ "$cfg_chroot/etc/gitweb.list"