/[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 943 by misc, Wed Feb 2 19:38:49 2011 UTC revision 944 by misc, Wed Feb 2 19:38:51 2011 UTC
# Line 80  class git { Line 80  class git {
80              $options = " "              $options = " "
81          }          }
82    
83          exec { "/usr/bin/git svn clone $options $source $name":          exec { "/usr/bin/git svn init $options $source $name":
84                alias => "git svn $name",
85              creates => $name,              creates => $name,
86          }          }
87    
88          cron { "update $name":          cron { "update $name":
89              command => "cd $name && /usr/bin/git svn rebase" ,              # done in 2 times, so fetch can fill the repo after init
90                command => "cd $name && /usr/bin/git svn fetch && /usr/bin/git svn rebase" ,
91              minute => $refresh              minute => $refresh
92          }          }
93          # TODO find a way to prevent commit          # TODO find a way to prevent commit
# Line 94  class git { Line 96  class git {
96              owner => root,              owner => root,
97              group => root,              group => root,
98              mode => 755,              mode => 755,
99              content => "#!bin/bash\nfalse"              content => "#!bin/bash\nfalse",
100                require => Exec["git svn $name"]
101          }          }
102      }      }
103    

Legend:
Removed from v.943  
changed lines
  Added in v.944

  ViewVC Help
Powered by ViewVC 1.1.30