/[adm]/puppet/modules/git/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/git/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 945 by misc, Wed Feb 2 19:38:53 2011 UTC revision 946 by misc, Wed Feb 2 19:38:55 2011 UTC
# Line 84  class git { Line 84  class git {
84              alias => "git svn $name",              alias => "git svn $name",
85              creates => $name,              creates => $name,
86          }          }
87            # TODO what if there is 2 concurents jobs ?
88            # should we add a lock ( ie, a script + lock file for first sync )
89          cron { "update $name":          cron { "update $name":
90              # done in 2 times, so fetch can fill the repo after init              # done in 2 times, so fetch can fill the repo after init
91              command => "cd $name && /usr/bin/git svn fetch && /usr/bin/git svn rebase" ,              command => "cd $name && /usr/bin/git svn fetch && /usr/bin/git svn rebase" ,
# Line 96  class git { Line 97  class git {
97              owner => root,              owner => root,
98              group => root,              group => root,
99              mode => 755,              mode => 755,
100              content => "#!/bin/bash\nfalse",              content => template('git/pre-receive'),
101              require => Exec["git svn $name"]              require => Exec["git svn $name"]
102          }          }
103      }      }

Legend:
Removed from v.945  
changed lines
  Added in v.946

  ViewVC Help
Powered by ViewVC 1.1.30