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:
8e16891
)
Run update_owner_and_excludes after update_preferences and get_revision
author
Scott O'Neil
<scott@cpanel.net>
Wed, 9 Nov 2011 00:46:41 +0000
(18:46 -0600)
committer
Scott O'Neil
<scott@cpanel.net>
Wed, 9 Nov 2011 00:46:41 +0000
(18:46 -0600)
These are called when the type is retrieve'd. Without this, the ownerships
for any .git metafiles fetch'd durring the retrieve will be owned by
root. This patch fixes that by invoking update_owner_and_excludes after
fetch'ng
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
51e48a9
..
6cbda67
100644
(file)
--- a/
lib/puppet/provider/vcsrepo/git.rb
+++ b/
lib/puppet/provider/vcsrepo/git.rb
@@
-96,6
+96,7
@@
Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
def update_references
at_path do
git_with_identity('fetch', '--tags', 'origin')
+ update_owner_and_excludes
end
end
@@
-262,6
+263,7
@@
Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
end
current = @resource.value(:revision) if current == canonical
end
+ update_owner_and_excludes
return current
end