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:
parent
9612dd9dc6
commit
d5d9ceb47c
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*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]
|
||||
|
||||
* Avoid using the --password switch with subversion for security purposes [sentinel]
|
||||
|
|
|
@ -88,7 +88,9 @@ module Capistrano
|
|||
def authentication
|
||||
username = variable(:scm_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
|
||||
|
||||
# If verbose output is requested, return nil, otherwise return the
|
||||
|
|
Loading…
Reference in a new issue