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/474138
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
diff --git a/git_cl.py b/git_cl.py
index 2f485b1..261e3d9 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2427,13 +2427,13 @@
if gerrit_auth == git_auth:
return
print((
- 'WARNING: you have different credentials for Gerrit and git hosts.\n'
- ' Check your %s or %s file for credentials of hosts:\n'
+ 'WARNING: you have different credentials for Gerrit and git hosts:\n'
' %s\n'
' %s\n'
- ' %s') %
- (cookie_auth.get_gitcookies_path(), cookie_auth.get_netrc_path(),
- git_host, self._gerrit_host,
+ ' Consider running the following command:\n'
+ ' git cl creds-check\n'
+ ' New credentials can be obtained by visiting %s') %
+ (git_host, self._gerrit_host,
cookie_auth.get_new_password_message(git_host)))
if not force:
confirm_or_exit('If you know what you are doing', action='continue')