match/lib/match/storage/git_storage.rb in fastlane-2.216.0 vs match/lib/match/storage/git_storage.rb in fastlane-2.217.0
- old
+ new
@@ -57,13 +57,21 @@
self.git_full_name = git_full_name
self.git_user_email = git_user_email
self.clone_branch_directly = clone_branch_directly
self.git_basic_authorization = git_basic_authorization
self.git_bearer_authorization = git_bearer_authorization
- self.git_private_key = git_private_key
+ self.git_private_key = convert_private_key_path_to_absolute(git_private_key)
self.type = type if type
self.platform = platform if platform
+ end
+
+ def convert_private_key_path_to_absolute(git_private_key)
+ if !git_private_key.nil? && File.file?(File.expand_path(git_private_key))
+ File.expand_path(git_private_key).shellescape.to_s
+ else
+ git_private_key
+ end
end
def prefixed_working_directory
return working_directory
end