Guest User

Untitled

a guest
Apr 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. diff --git a/chef/lib/chef/provider/git.rb b/chef/lib/chef/provider/git.rb
  2. index 9da744c..d77b858 100644
  3. --- a/chef/lib/chef/provider/git.rb
  4. +++ b/chef/lib/chef/provider/git.rb
  5. @@ -117,7 +117,7 @@ class Chef
  6. end
  7.  
  8. # since we're in a local branch already, just reset to specified revision rather than merge
  9. - sync_command << "#{git} fetch #{@new_resource.remote} && #{git} reset --hard #{revision}"
  10. + sync_command << "#{git} fetch #{@new_resource.remote} --tags && #{git} reset --hard #{revision}"
  11. Chef::Log.info "Fetching updates from #{new_resource.remote} and resetting to revison #{revision}"
  12. run_command(run_options(:command => sync_command.join(" && "), :cwd => @new_resource.destination))
  13. end
Add Comment
Please, Sign In to add comment