diff options
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/manifests/init.pp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp index 624c1cc6..f9714e4e 100644 --- a/modules/git/manifests/init.pp +++ b/modules/git/manifests/init.pp @@ -80,12 +80,14 @@ class git { $options = " " } - exec { "/usr/bin/git svn clone $options $source $name": + exec { "/usr/bin/git svn init $options $source $name": + alias => "git svn $name", creates => $name, } cron { "update $name": - command => "cd $name && /usr/bin/git svn rebase" , + # done in 2 times, so fetch can fill the repo after init + command => "cd $name && /usr/bin/git svn fetch && /usr/bin/git svn rebase" , minute => $refresh } # TODO find a way to prevent commit @@ -94,7 +96,8 @@ class git { owner => root, group => root, mode => 755, - content => "#!bin/bash\nfalse" + content => "#!bin/bash\nfalse", + require => Exec["git svn $name"] } } |