<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
 *unreleased*
 
+* Make sure git fetches include tags [Alex Arnell]
+
 * Make deploy:setup obey the :use_sudo and :runner directives, and generalize the :use_sudo and :runner options into a try_sudo() helper method [Jamis Buck]
 
 * Make sudo helper play nicely with complex command chains [Jamis Buck]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -184,7 +184,7 @@ module Capistrano
           end
 
           # since we're in a local branch already, just reset to specified revision rather than merge
-          execute &lt;&lt; &quot;#{git} fetch #{remote} &amp;&amp; #{git} reset --hard #{revision}&quot;
+          execute &lt;&lt; &quot;#{git} fetch --tags #{remote} &amp;&amp; #{git} reset --hard #{revision}&quot;
 
           if configuration[:git_enable_submodules]
             execute &lt;&lt; &quot;#{git} submodule init&quot;</diff>
      <filename>lib/capistrano/recipes/deploy/scm/git.rb</filename>
    </modified>
    <modified>
      <diff>@@ -66,12 +66,12 @@ class DeploySCMGitTest &lt; Test::Unit::TestCase
   def test_sync
     dest = &quot;/var/www&quot;
     rev = 'c2d9e79'
-    assert_equal &quot;cd #{dest} &amp;&amp; git fetch origin &amp;&amp; git reset --hard #{rev}&quot;, @source.sync(rev, dest)
+    assert_equal &quot;cd #{dest} &amp;&amp; git fetch --tags origin &amp;&amp; git reset --hard #{rev}&quot;, @source.sync(rev, dest)
 
     # With :scm_command
     git = &quot;/opt/local/bin/git&quot;
     @config[:scm_command] = git
-    assert_equal &quot;cd #{dest} &amp;&amp; #{git} fetch origin &amp;&amp; #{git} reset --hard #{rev}&quot;, @source.sync(rev, dest)
+    assert_equal &quot;cd #{dest} &amp;&amp; #{git} fetch --tags origin &amp;&amp; #{git} reset --hard #{rev}&quot;, @source.sync(rev, dest)
   end
 
   def test_sync_with_remote
@@ -83,7 +83,7 @@ class DeploySCMGitTest &lt; Test::Unit::TestCase
     @config[:repository] = repository
     @config[:remote] = remote
 
-    assert_equal &quot;cd #{dest} &amp;&amp; git config remote.#{remote}.url #{repository} &amp;&amp; git config remote.#{remote}.fetch +refs/heads/*:refs/remotes/#{remote}/* &amp;&amp; git fetch #{remote} &amp;&amp; git reset --hard #{rev}&quot;, @source.sync(rev, dest)
+    assert_equal &quot;cd #{dest} &amp;&amp; git config remote.#{remote}.url #{repository} &amp;&amp; git config remote.#{remote}.fetch +refs/heads/*:refs/remotes/#{remote}/* &amp;&amp; git fetch --tags #{remote} &amp;&amp; git reset --hard #{rev}&quot;, @source.sync(rev, dest)
   end
 
   def test_shallow_clone</diff>
      <filename>test/deploy/scm/git_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>552a4924284d7f74a327b163ead1fe6b992c9c60</id>
    </parent>
  </parents>
  <author>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </author>
  <url>http://github.com/jamis/capistrano/commit/838f6abd74b4d4244111a698ab8b955fbe678cde</url>
  <id>838f6abd74b4d4244111a698ab8b955fbe678cde</id>
  <committed-date>2008-05-02T13:42:26-07:00</committed-date>
  <authored-date>2008-05-02T13:42:26-07:00</authored-date>
  <message>Make sure git fetches include tags [#6 tagged:committed status:resolved]</message>
  <tree>851324d5a509efc3789ac9a14656265794dd5b8d</tree>
  <committer>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </committer>
</commit>
