summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-02-24 00:29:46 +0000
committermh <mh@immerda.ch>2009-02-24 00:29:46 +0000
commit27c72fae8c2b92743f55133c0056d0f9a48c58cc (patch)
tree21861401e7d3755a2e5cda7b9fbd7a040ba4083d /manifests
parent8cc237b95d45a2bf6f54cb76c30dd96c44260af0 (diff)
to run git we need the git package
Diffstat (limited to 'manifests')
-rw-r--r--manifests/defines.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/defines.pp b/manifests/defines.pp
index 7cae1a0..cab1930 100644
--- a/manifests/defines.pp
+++ b/manifests/defines.pp
@@ -57,9 +57,12 @@ define git::clone(
$cloneddir_group='0',
$cloneddir_restrict_mode=true
){
+ include git
+
exec {"git-clone_${name}":
command => "git-clone --no-hardlinks ${git_repo} ${projectroot}",
- creates => "$projectroot/.git",
+ creates => "${projectroot}/.git",
+ require => Package['git'],
notify => Exec["git-clone-chown_${name}"],
}
exec {"git-clone-chown_${name}":