mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
default to 0664 instead of 0660 on upload
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
577fffebd0
commit
2570b78819
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Default to 0664 instead of 0660 on upload [Jamis Buck]
|
||||
|
||||
* Fix deploy:pending to query SCM for the subsequent revision so that it does not include the last deployed change [Jamis Buck]
|
||||
|
||||
* Prefer 'Last Changed Rev' over 'Revision' when querying latest revision via Subversion [Jamis Buck]
|
||||
|
|
|
@ -101,7 +101,7 @@ module Capistrano
|
|||
sftp.channel[:failed] = false
|
||||
|
||||
real_filename = filename.gsub(/\$CAPISTRANO:HOST\$/, server.host)
|
||||
sftp.open(real_filename, IO::WRONLY | IO::CREAT | IO::TRUNC, options[:mode] || 0660) do |status, handle|
|
||||
sftp.open(real_filename, IO::WRONLY | IO::CREAT | IO::TRUNC, options[:mode] || 0664) do |status, handle|
|
||||
break unless check_status(sftp, "open #{real_filename}", server, status)
|
||||
|
||||
logger.info "uploading data to #{server}:#{real_filename}" if logger
|
||||
|
|
Loading…
Reference in a new issue