<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -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 &lt;&lt; &quot;#{git} fetch #{@new_resource.remote} &amp;&amp; #{git} reset --hard #{revision}&quot;
+        sync_command &lt;&lt; &quot;#{git} fetch #{@new_resource.remote} --tags &amp;&amp; #{git} reset --hard #{revision}&quot;
         Chef::Log.info &quot;Fetching updates from #{new_resource.remote} and resetting to revison #{revision}&quot;
         run_command(run_options(:command =&gt; sync_command.join(&quot; &amp;&amp; &quot;), :cwd =&gt; @new_resource.destination))
       end</diff>
      <filename>chef/lib/chef/provider/git.rb</filename>
    </modified>
    <modified>
      <diff>@@ -181,7 +181,7 @@ describe Chef::Provider::Git do
   end
   
   it &quot;runs a sync command with default options&quot; do
-    expected_cmd = &quot;git fetch origin &amp;&amp; git reset --hard d35af14d41ae22b19da05d7d03a0bafc321b244c&quot;
+    expected_cmd = &quot;git fetch origin --tags &amp;&amp; git reset --hard d35af14d41ae22b19da05d7d03a0bafc321b244c&quot;
     @provider.should_receive(:run_command).with(:command=&gt;expected_cmd, :cwd=&gt; &quot;/my/deploy/dir&quot;)
     @provider.sync
   end
@@ -190,7 +190,7 @@ describe Chef::Provider::Git do
     @resource.remote &quot;opscode&quot;
     expected_cmd =  &quot;git config remote.opscode.url git://github.com/opscode/chef.git &amp;&amp; &quot; +
                     &quot;git config remote.opscode.fetch +refs/heads/*:refs/remotes/opscode/* &amp;&amp; &quot; +
-                    &quot;git fetch opscode &amp;&amp; git reset --hard d35af14d41ae22b19da05d7d03a0bafc321b244c&quot;
+                    &quot;git fetch opscode --tags &amp;&amp; git reset --hard d35af14d41ae22b19da05d7d03a0bafc321b244c&quot;
     @provider.should_receive(:run_command).with(:command =&gt; expected_cmd, :cwd =&gt; &quot;/my/deploy/dir&quot;)
     @provider.sync
   end</diff>
      <filename>chef/spec/unit/provider/git_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f80b5b578a6000b1da64e2c558f9bc4e5dc33872</id>
    </parent>
  </parents>
  <author>
    <name>Adam Jacob</name>
    <email>adam@opscode.com</email>
  </author>
  <url>http://github.com/opscode/chef/commit/2c47c70bf690fb39d5db1336b6735d24211a030a</url>
  <id>2c47c70bf690fb39d5db1336b6735d24211a030a</id>
  <committed-date>2009-11-04T21:07:16-08:00</committed-date>
  <authored-date>2009-11-04T21:07:16-08:00</authored-date>
  <message>Fixes CHEF-688
We need to be fetching tags, so that you can deploy new tag revisions.</message>
  <tree>e9224c87b047a2daf0e72ca61ae5d2ef0750f577</tree>
  <committer>
    <name>Adam Jacob</name>
    <email>adam@opscode.com</email>
  </committer>
</commit>
