diff --git a/CHANGELOG b/CHANGELOG index 9ca09071..a00ce652 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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] diff --git a/lib/capistrano/upload.rb b/lib/capistrano/upload.rb index b614c0e5..57e43f5f 100644 --- a/lib/capistrano/upload.rb +++ b/lib/capistrano/upload.rb @@ -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