Commit 51acef99 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov Committed by Commit Bot

Shamelessly plug $ git cl creds-check into yet another place.

R=machenbach@chromium.org

Bug: 689543
Change-Id: I73607e7afe78bac3bbe509fe9c4387dfd0095011
Reviewed-on: https://chromium-review.googlesource.com/474138Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
parent c971239e
...@@ -2427,13 +2427,13 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase): ...@@ -2427,13 +2427,13 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase):
if gerrit_auth == git_auth: if gerrit_auth == git_auth:
return return
print(( print((
'WARNING: you have different credentials for Gerrit and git hosts.\n' 'WARNING: you have different credentials for Gerrit and git hosts:\n'
' Check your %s or %s file for credentials of hosts:\n'
' %s\n' ' %s\n'
' %s\n' ' %s\n'
' %s') % ' Consider running the following command:\n'
(cookie_auth.get_gitcookies_path(), cookie_auth.get_netrc_path(), ' git cl creds-check\n'
git_host, self._gerrit_host, ' New credentials can be obtained by visiting %s') %
(git_host, self._gerrit_host,
cookie_auth.get_new_password_message(git_host))) cookie_auth.get_new_password_message(git_host)))
if not force: if not force:
confirm_or_exit('If you know what you are doing', action='continue') confirm_or_exit('If you know what you are doing', action='continue')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment