match/lib/match/change_password.rb in fastlane-2.109.1 vs match/lib/match/change_password.rb in fastlane-2.110.0
- old
+ new
@@ -5,9 +5,16 @@
module Match
# These functions should only be used while in (UI.) interactive mode
class ChangePassword
def self.update(params: nil)
+ if params[:storage_mode] != "git"
+ # Only git supports changing the password
+ # All other storage options will most likely use more advanced
+ # ways to encrypt files
+ UI.user_error!("Only git-based match allows you to change your password, current `storage_mode` is #{params[:storage_mode]}")
+ end
+
ensure_ui_interactive
to = ChangePassword.ask_password(message: "New passphrase for Git Repo: ", confirm: true)
# Choose the right storage and encryption implementations