match/lib/match/change_password.rb in fastlane-2.29.0.beta.20170509010055 vs match/lib/match/change_password.rb in fastlane-2.29.0
- old
+ new
@@ -4,10 +4,17 @@
def self.update(params: nil, from: nil, to: nil)
ensure_ui_interactive
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], branch: params[:git_branch])
+ workspace = GitHelper.clone(params[:git_url],
+ params[:shallow_clone],
+ manual_password: from,
+ skip_docs: params[:skip_docs],
+ branch: params[:git_branch],
+ git_full_name: params[:git_full_name],
+ git_user_email: params[:git_user_email],
+ clone_branch_directly: params[:clone_branch_directly])
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], params[:git_branch])