From 339fc275e77a0c80a14bb4a0e38318990d3fb3e9 Mon Sep 17 00:00:00 2001 From: Ben Ford Date: Mon, 11 Mar 2013 19:38:40 -0400 Subject: Create the repository with proper permissions. --- lib/puppet/provider/vcsrepo/git.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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' -- cgit v1.2.3