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