Create the repository with proper permissions.
authorBen Ford <ben.ford@puppetlabs.com>
Mon, 11 Mar 2013 23:38:40 +0000 (19:38 -0400)
committerBen Ford <ben.ford@puppetlabs.com>
Mon, 11 Mar 2013 23:38:40 +0000 (19:38 -0400)
lib/puppet/provider/vcsrepo/git.rb

index 9254243..6920c75 100644 (file)
@@ -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'