summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-12-27 03:20:31 +0000
committerGo MAEDA <maeda@farend.jp>2021-12-27 03:20:31 +0000
commit4db7397d2a46e745da298a4abd5d6f9e3002e2d2 (patch)
treee86884a4edf8e414b6dc32582763458a724e88a2 /lib/redmine/scm
parent91c00f51ec9d9ade33d2bb22a8e67c8cf6b29ba8 (diff)
downloadredmine-4db7397d2a46e745da298a4abd5d6f9e3002e2d2.tar.gz
redmine-4db7397d2a46e745da298a4abd5d6f9e3002e2d2.zip
Use File.exist? instead of deprecated File.exists? (#36358).
git-svn-id: http://svn.redmine.org/redmine/trunk@21327 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index d0c3293a6..4c12f4a13 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -216,7 +216,7 @@ module Redmine
writable = false
path = Redmine::Configuration['scm_stderr_log_file'].presence
path ||= Rails.root.join("log/#{Rails.env}.scm.stderr.log").to_s
- if File.exists?(path)
+ if File.exist?(path)
if File.file?(path) && File.writable?(path)
writable = true
else