diff options
author | James Turnbull <james@lovedthanlost.net> | 2011-11-12 09:06:03 -0800 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2011-11-12 09:06:03 -0800 |
commit | df6a9b33cb8e54cbc798ae32c70f0785bb87b89e (patch) | |
tree | 68305df167d638b26af8316a5b6b4be683671e79 | |
parent | 8e16891d95c58408ae78f05824da0169723d2226 (diff) | |
parent | 328d88ee590e6fa7ee64806fbfd9e09fa5ead979 (diff) | |
download | puppet-vcsrepo-df6a9b33cb8e54cbc798ae32c70f0785bb87b89e.tar.gz puppet-vcsrepo-df6a9b33cb8e54cbc798ae32c70f0785bb87b89e.tar.bz2 |
Merge pull request #11 from cPanelScott/master
Bug Fix: Some ownerships in .git directory are 'root' after vcsrepo's retrieve is called
-rw-r--r-- | lib/puppet/provider/vcsrepo/git.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb index 51e48a9..6cbda67 100644 --- a/lib/puppet/provider/vcsrepo/git.rb +++ b/lib/puppet/provider/vcsrepo/git.rb @@ -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 |