From 41684519aa964d08810b55337514f43ed2b4c537 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 2 Feb 2011 19:38:56 +0000 Subject: - use a script, with a lock , so we can have more than one update running without trouble. Remove older comments in manifests --- modules/git/files/update_git_svn.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/git/files/update_git_svn.sh (limited to 'modules/git/files') diff --git a/modules/git/files/update_git_svn.sh b/modules/git/files/update_git_svn.sh new file mode 100644 index 00000000..b3802f81 --- /dev/null +++ b/modules/git/files/update_git_svn.sh @@ -0,0 +1,13 @@ +#!/bin/bash +GIT_REP="$1" +LOCKFILE="$GIT_REP/.git/update.cron.lock" + +cd "$GIT_REP" +[ -f $LOCKFILE ] && exit 0 +trap "rm -f '$LOCKFILE'" EXIT + +touch "$LOCKFILE" + +/usr/bin/git svn fetch +/usr/bin/git svn rebase +exit 0 -- cgit v1.2.1