<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,10 @@
+*SVN*
+
+* Don't send no-auth-cache if no auth credentials are given [Jonathan Younger]
+
 *1.4.1* (February 24, 2007)
 
-* Use the no-auth-cache option with subversion so that username/password tokens do not get cached by capistrano usage [jonathan]
+* Use the no-auth-cache option with subversion so that username/password tokens do not get cached by capistrano usage [Jonathan Younger]
 
 * Deprecated upper-cased variables [Jamis Buck]
 </diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -80,7 +80,8 @@ module Capistrano
         def authorization
           username = configuration[:svn_username] ? &quot;--username #{configuration[:svn_username]}&quot; : &quot;&quot;
           password = configuration[:svn_password] ? &quot;--password #{configuration[:svn_password]}&quot; : &quot;&quot;
-          &quot;--no-auth-cache #{username} #{password}&quot;
+          no_auth_cache = configuration[:svn_username] || configuration[:svn_password] ? &quot;--no-auth-cache&quot; : &quot;&quot;
+          &quot;#{no_auth_cache} #{username} #{password}&quot;
         end
 
         def svn_log(path)</diff>
      <filename>lib/capistrano/scm/subversion.rb</filename>
    </modified>
    <modified>
      <diff>@@ -134,4 +134,12 @@ MSG
     assert_nil @actor.channels.last.sent_data
     assert_match %r{/path/to/svn\b.*\bco\b.* --username turtledove}, @actor.command
   end
+  
+  def test_svn_no_auth_cache
+    @actor.story = []
+    @config[:svn_username] = &quot;turtledove&quot;
+    assert_nothing_raised { @scm.checkout(@actor) }
+    assert_nil @actor.channels.last.sent_data
+    assert_match %r{/path/to/svn\b.*\bco\b.* --no-auth-cache --username turtledove}, @actor.command
+  end
 end</diff>
      <filename>test/scm/subversion_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>614152fbc445d148cb21a73e7d9c9ac127c47b5a</id>
    </parent>
  </parents>
  <author>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </author>
  <url>http://github.com/jamis/capistrano/commit/54cee940d2834f406d960d30193b8e442f55126a</url>
  <id>54cee940d2834f406d960d30193b8e442f55126a</id>
  <committed-date>2007-03-05T09:32:16-08:00</committed-date>
  <authored-date>2007-03-05T09:32:16-08:00</authored-date>
  <message>Don't send no-auth-cache if no auth credentials are given


git-svn-id: http://svn.rubyonrails.org/rails/branches/capistrano_1-x-stable@6339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de</message>
  <tree>8c758b3ecb0c37cf34a3b72fea5d079d258e1c06</tree>
  <committer>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </committer>
</commit>
