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:
commit
df6a9b33cb
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user