lib/match/change_password.rb in match-0.5.0 vs lib/match/change_password.rb in match-0.6.0

- old
+ new

@@ -2,15 +2,15 @@ class ChangePassword def self.update(params: nil, from: nil, to: nil) to ||= ChangePassword.ask_password(message: "New passphrase for Git Repo: ", confirm: false) from ||= ChangePassword.ask_password(message: "Old passphrase for Git Repo: ", confirm: true) GitHelper.clear_changes - workspace = GitHelper.clone(params[:git_url], params[:shallow_clone], manual_password: from, skip_docs: params[:skip_docs]) + workspace = GitHelper.clone(params[:git_url], params[:shallow_clone], manual_password: from, skip_docs: params[:skip_docs], branch: params[:git_branch]) Encrypt.new.clear_password(params[:git_url]) Encrypt.new.store_password(params[:git_url], to) message = "[fastlane] Changed passphrase" - GitHelper.commit_changes(workspace, message, params[:git_url]) + GitHelper.commit_changes(workspace, message, params[:git_url], params[:git_branch]) end def self.ask_password(message: "Passphrase for Git Repo: ", confirm: true) loop do password = ask(message.yellow) { |q| q.echo = "*" }