aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/files/update_git_svn.sh
blob: b3802f813ec0d99bf680f30d01570bcf0521fe02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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