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:
parent
8e16891d95
commit
328d88ee59
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue