FIX: fixed deprecated method exists

This commit is contained in:
Dominik Meyer 2024-02-05 13:31:46 +01:00
parent 230793baf6
commit 8d6d4efdf2
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97

View File

@ -99,7 +99,7 @@ class Repository::GitRemote < Repository::Git
return "#{clone_url} is not a valid remote."
end
if Dir.exists? clone_path
if Dir.exist? clone_path
existing_repo_remote, status = RedmineGitRemote::PoorMansCapture3::capture2("git", "--git-dir", clone_path, "config", "--get", "remote.origin.url")
return "Unable to run: git --git-dir #{clone_path} config --get remote.origin.url" unless status.success?