/[adm]/puppet/modules/git/files/update_git_svn.sh
ViewVC logotype

Contents of /puppet/modules/git/files/update_git_svn.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 947 - (show annotations) (download) (as text)
Wed Feb 2 19:38:56 2011 UTC (13 years, 2 months ago) by misc
File MIME type: application/x-sh
File size: 215 byte(s)
- use a script, with a lock , so we can have more than one update
  running without trouble. Remove older comments in manifests
1 #!/bin/bash
2 GIT_REP="$1"
3 LOCKFILE="$GIT_REP/.git/update.cron.lock"
4
5 cd "$GIT_REP"
6 [ -f $LOCKFILE ] && exit 0
7 trap "rm -f '$LOCKFILE'" EXIT
8
9 touch "$LOCKFILE"
10
11 /usr/bin/git svn fetch
12 /usr/bin/git svn rebase
13 exit 0

  ViewVC Help
Powered by ViewVC 1.1.30