diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb old mode 100644 new mode 100755 index 6e41415..1647eb5 --- a/lib/puppet/provider/vcsrepo/git.rb +++ b/lib/puppet/provider/vcsrepo/git.rb @@ -195,7 +195,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo) def checkout(revision = @resource.value(:revision)) if tag_revision?(revision) if !local_branch_revision?("tag/#{revision}") - at_path { git_with_identity('checkout', '-b', "tag/#{revision}") } + at_path { git_with_identity('checkout', '-b', "tag/#{revision}", "#{revision}") } else at_path { git_with_identity('checkout', '--force', "tag/#{revision}") } end