From 8d6d4efdf2bbd646368b3a4acbb7834cd205d0da Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Mon, 5 Feb 2024 13:31:46 +0100 Subject: [PATCH] FIX: fixed deprecated method exists --- app/models/repository/git_remote.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/repository/git_remote.rb b/app/models/repository/git_remote.rb index c7aa2d9..9388684 100644 --- a/app/models/repository/git_remote.rb +++ b/app/models/repository/git_remote.rb @@ -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?