jobs/fixupcheck.sh: Do not consider internal groups
[girocco/mytab.git] / daemons / update.sh
blob906634c598030a2c4f67cbbd5357482a5b9dee7c
1 #!/bin/bash
3 . @basedir@/shlib.sh
5 set -e
7 proj="$1"
8 cd "$cfg_reporoot/$proj.git"
10 progress "+ `date` update: $proj"
12 bang_setup
13 bang_once=1
14 bang_action="update"
16 url="$(cat base_url)"
17 mail="$(cat owner)"
19 case "$url" in
20 svn://*)
21 GIT_DIR=. bang git svn fetch
22 GIT_DIR=. bang git fetch
25 bang git remote update
26 bang git remote prune origin
28 esac
30 bang git update-server-info
31 date -R >.last_refresh
33 if [ -e .banged ]; then
34 echo "$proj update succeeded - failure recovery" | mail -s "[$cfg_name] $proj update succeeded" "$mail,$cfg_admin"
35 rm .banged
38 progress "- `date` update: $proj"