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 |
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 |
|
|