theforeman/puppet-git — pull request #2 by GregSutcliffe (2012-04-09 22:13:31+00:00)
Title: Check inside a normal repo for existence

Change target for non-bare repos, so we can create/chown the holding dir before doing the clone.

Without this change, it's not possible to do something like:

file { "/usr/share/foreman":
ensure => directory,
owner => 'foreman'
} ->
git-repo { "foreman: user => 'foreman' }

Because '/usr/share' is owned by root. Instead, you have to do the checkout as root and then chown everything afterwards - far messier.