Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/chef/lib/chef/provider/git.rb b/chef/lib/chef/provider/git.rb
- index 9da744c..d77b858 100644
- --- a/chef/lib/chef/provider/git.rb
- +++ b/chef/lib/chef/provider/git.rb
- @@ -117,7 +117,7 @@ class Chef
- end
- # since we're in a local branch already, just reset to specified revision rather than merge
- - sync_command << "#{git} fetch #{@new_resource.remote} && #{git} reset --hard #{revision}"
- + sync_command << "#{git} fetch #{@new_resource.remote} --tags && #{git} reset --hard #{revision}"
- Chef::Log.info "Fetching updates from #{new_resource.remote} and resetting to revison #{revision}"
- run_command(run_options(:command => sync_command.join(" && "), :cwd => @new_resource.destination))
- end
Add Comment
Please, Sign In to add comment