projects
/
puppet_vcsrepo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
339fc27
)
Allow non-root users to clone a repo
author
Ben Ford
<ben.ford@puppetlabs.com>
Mon, 18 Mar 2013 20:02:18 +0000
(13:02 -0700)
committer
Ben Ford
<ben.ford@puppetlabs.com>
Mon, 18 Mar 2013 20:02:18 +0000
(13:02 -0700)
Without this, git will report that it can't change back to /root
lib/puppet/provider/vcsrepo/git.rb
patch
|
blob
|
history
diff --git
a/lib/puppet/provider/vcsrepo/git.rb
b/lib/puppet/provider/vcsrepo/git.rb
index
6920c75
..
2d754b9
100644
(file)
--- a/
lib/puppet/provider/vcsrepo/git.rb
+++ b/
lib/puppet/provider/vcsrepo/git.rb
@@
-115,7
+115,9
@@
Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
end
if !File.exist?(File.join(@resource.value(:path), '.git'))
args.push(source, path)
- git_with_identity(*args)
+ Dir.chdir("/") do
+ git_with_identity(*args)
+ end
else
notice "Repo has already been cloned"
end