3 current="`git config --get --path remote.current.url`"
4 origin="`git config --get --path remote.origin.url`"
6 if [ -n "$origin" ]; then
7 if [ -n "$current" ]; then
10 echo "This script must be run in the origin directory: $origin"
13 elif [ -z "$current" ]; then
14 echo "UNKNOWN ERROR" >&2
18 git pull --ff-only current master &&
20 web="`git config --get --path remote.web.url`" &&
21 [ -n "$web" ] && git push web
23 # Copy search_tags.* with timestamp to avoid rebuilding
24 rsync -ahP "$current"/html/html.py "$current"/html/html.tmpl \
25 "$current"/html/redirect.py "$current"/html/redirect.tmpl html &&
27 cd "$current" && exec git pull origin