summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Ford <ben.ford@puppetlabs.com>2013-03-12 09:55:57 -0700
committerBen Ford <ben.ford@puppetlabs.com>2013-03-12 09:55:57 -0700
commitb9018d4903f94d2ef694446ad2843327421304fe (patch)
treea01f04762686da1624cde4f1b044d105b9e4477f /lib
parent04851c28b12973c679fc9f234fd0f5a193df9d7a (diff)
parent339fc275e77a0c80a14bb4a0e38318990d3fb3e9 (diff)
Merge pull request #57 from binford2k/master
Allows the creation of non-root repositories
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/vcsrepo/git.rb1
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'