Permalink
Browse files

Fixes for git

  • Loading branch information...
root
root committed Feb 9, 2010
1 parent a5b09ac commit c2c3a25a2927a17107d388c47ef7e2c035037ef5
Showing with 4 additions and 2 deletions.
  1. +3 −1 git/manifests/definitions/clone.pp
  2. +1 −1 git/manifests/init.pp
@@ -1,10 +1,12 @@
define git::clone($url,$path="/srv/git") {
+ include git
+
exec {
"git-clone $url":
command => "git-clone ${url}",
cwd => "${path}",
- require => [ Package["git"] ],
+ require => Package[git],
onlyif => "test ! -e ${path}/${name}",
}
}
View
@@ -2,7 +2,7 @@
$git_basedir="/srv/git"
- package { git:
+ package { "git":
name => $operatingsystem ? {
default => "git",
},

0 comments on commit c2c3a25

Please sign in to comment.