match/lib/match/change_password.rb in fastlane-2.178.0 vs match/lib/match/change_password.rb in fastlane-2.179.0

- old
+ new

@@ -14,11 +14,11 @@ 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 = FastlaneCore::Helper.ask_password(message: "New passphrase for Git Repo: ", confirm: true) + new_password = FastlaneCore::Helper.ask_password(message: "New passphrase for Git Repo: ", confirm: true) # Choose the right storage and encryption implementations storage = Storage.for_mode(params[:storage_mode], { git_url: params[:git_url], shallow_clone: params[:shallow_clone], @@ -35,13 +35,13 @@ working_directory: storage.working_directory }) encryption.decrypt_files encryption.clear_password - encryption.store_password(to) + encryption.store_password(new_password) message = "[fastlane] Changed passphrase" - files_to_commit = encryption.encrypt_files + files_to_commit = encryption.encrypt_files(new_password) storage.save_changes!(files_to_commit: files_to_commit, custom_message: message) end def self.ensure_ui_interactive raise "This code should only run in interactive mode" unless UI.interactive?