1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Allow auth-caching of subversion credentials to be enabled (closes #9364)

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2007-09-01 01:43:29 +00:00
parent 9612dd9dc6
commit d5d9ceb47c
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,7 @@
*SVN* *SVN*
* Allow auth-caching of subversion credentials to be enabled via :scm_auth_cache [tsmith]
* Don't let a task trigger itself when used as the source for an "on" hook [Jamis Buck] * Don't let a task trigger itself when used as the source for an "on" hook [Jamis Buck]
* Avoid using the --password switch with subversion for security purposes [sentinel] * Avoid using the --password switch with subversion for security purposes [sentinel]

View file

@ -88,7 +88,9 @@ module Capistrano
def authentication def authentication
username = variable(:scm_username) username = variable(:scm_username)
return "" unless username return "" unless username
"--username #{variable(:scm_username)} --no-auth-cache " result = "--username #{variable(:scm_username)} "
result << "--no-auth-cache " unless variable(:scm_auth_cache)
result
end end
# If verbose output is requested, return nil, otherwise return the # If verbose output is requested, return nil, otherwise return the