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" , |
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 |
} |
} |