7 REPO_DIR
=/home
/repo
/repo
8 LOCK_FILE
=/tmp
/updateweb-
$cfg_tmpsuffix.lock
12 # Make sure we don't run twice.
13 if [ -s ${LOCK_FILE} ] && kill -0 $
(cat ${LOCK_FILE}); then
14 echo "Already running (stuck?) with pid $(cat ${LOCK_FILE})" >&2
19 pushd ${REPO_DIR} > /dev
/null
21 if [ "`git rev-list $BRANCH..$REMOTE/$BRANCH`" ]; then
22 git merge
--ff-only $REMOTE/$BRANCH &&
23 git submodule update
&&