2012-03-19 09:34:17 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# this is literally the simplest gitweb update possible. You are free to add
|
|
|
|
# whatever you want and contribute it back, as long as it is upward
|
|
|
|
# compatible.
|
|
|
|
|
2012-05-25 08:58:14 +02:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# skip if arg-1 is POST_CREATE and no arg-3 (user name) exists; this means
|
|
|
|
# it's been triggered by a *normal* (not "wild") repo creation, which in turn
|
|
|
|
# means a POST_COMPILE should be following so there's no need to waste time
|
|
|
|
# running this once for each new repo
|
|
|
|
[ "$1" = "POST_CREATE" ] && [ -z "$3" ] && exit 0;
|
|
|
|
|
2012-04-18 09:09:24 +02:00
|
|
|
plf=`gitolite query-rc GITWEB_PROJECTS_LIST`
|
2012-03-19 09:34:17 +01:00
|
|
|
[ -z "$plf" ] && plf=$HOME/projects.list
|
|
|
|
|
2012-03-22 08:19:27 +01:00
|
|
|
(
|
|
|
|
gitolite list-phy-repos | gitolite access % gitweb R any | grep -v DENIED
|
|
|
|
gitolite list-phy-repos | gitolite git-config -r % gitweb\\.
|
|
|
|
) |
|
|
|
|
cut -f1 | sort -u | sed -e 's/$/.git/' > $plf
|
2012-03-19 09:34:17 +01:00
|
|
|
|