adamhjk (owner)

Revisions

gist: 226782 Download_button fork
public
Public Clone URL: git://gist.github.com/226782.git
Embed All Files: show embed
Text #
1
2
3
4
5
6
7
8
9
10
11
12
13
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