Run update_owner_and_excludes after update_preferences and get_revision

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
This commit is contained in:
Scott O'Neil 2011-11-08 18:46:41 -06:00
parent 8e16891d95
commit 328d88ee59
1 changed files with 2 additions and 0 deletions

View File

@ -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