diff options
author | Ben Ford <ben.ford@puppetlabs.com> | 2013-03-12 09:55:57 -0700 |
---|---|---|
committer | Ben Ford <ben.ford@puppetlabs.com> | 2013-03-12 09:55:57 -0700 |
commit | b9018d4903f94d2ef694446ad2843327421304fe (patch) | |
tree | a01f04762686da1624cde4f1b044d105b9e4477f /lib/puppet/provider | |
parent | 04851c28b12973c679fc9f234fd0f5a193df9d7a (diff) | |
parent | 339fc275e77a0c80a14bb4a0e38318990d3fb3e9 (diff) |
Merge pull request #57 from binford2k/master
Allows the creation of non-root repositories
Diffstat (limited to 'lib/puppet/provider')
-rw-r--r-- | lib/puppet/provider/vcsrepo/git.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb index 9254243..6920c75 100644 --- a/lib/puppet/provider/vcsrepo/git.rb +++ b/lib/puppet/provider/vcsrepo/git.rb @@ -141,6 +141,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo) else # normal init FileUtils.mkdir(@resource.value(:path)) + FileUtils.chown(@resource.value(:user), nil, @resource.value(:path)) if @resource.value(:user) args = ['init'] if @resource.value(:ensure) == :bare args << '--bare' |