Merge pull request #11 from cPanelScott/master

Bug Fix: Some ownerships in .git directory are 'root' after vcsrepo's retrieve is called
This commit is contained in:
James Turnbull 2011-11-12 09:06:03 -08:00
commit df6a9b33cb

View File

@ -96,6 +96,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
def update_references def update_references
at_path do at_path do
git_with_identity('fetch', '--tags', 'origin') git_with_identity('fetch', '--tags', 'origin')
update_owner_and_excludes
end end
end end
@ -262,6 +263,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
end end
current = @resource.value(:revision) if current == canonical current = @resource.value(:revision) if current == canonical
end end
update_owner_and_excludes
return current return current
end end