Index: gcl.py |
diff --git a/gcl.py b/gcl.py |
index 138aeb40179f3fb692709bb3aaaff76d96878680..e4b50859d68314ff6b065777767d20088ac765e3 100755 |
--- a/gcl.py |
+++ b/gcl.py |
@@ -577,13 +577,12 @@ def GetFilesNotInCL(): |
def SendToRietveld(request_path, payload=None, |
content_type="application/octet-stream", timeout=None): |
"""Send a POST/GET to Rietveld. Returns the response body.""" |
+ server = GetCodeReviewSetting("CODE_REVIEW_SERVER") |
def GetUserCredentials(): |
"""Prompts the user for a username and password.""" |
- email = upload.GetEmail() |
+ email = upload.GetEmail("Email (login for uploading to %s)" % server) |
password = getpass.getpass("Password for %s: " % email) |
return email, password |
- |
- server = GetCodeReviewSetting("CODE_REVIEW_SERVER") |
rpc_server = upload.HttpRpcServer(server, |
GetUserCredentials, |
host_override=server, |