Commit 02701618 authored by thakis@chromium.org's avatar thakis@chromium.org

Unbreak `gcl try` if EMAIL_ADDRESS is not set.

Review URL: http://codereview.chromium.org/172099

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@25151 0039d316-1c4b-4281-b951-d872f2087c98
parent 59ad6c72
......@@ -312,9 +312,11 @@ def _SendChangeSVN(options):
try:
# Don't use '--non-interactive', since we want it to prompt for
# crendentials if necessary.
RunCommand(['svn', 'checkout', '--depth', 'empty',
'--username', options.email,
options.svn_repo, temp_dir])
command = ['svn', 'checkout', '--depth', 'empty',
options.svn_repo, temp_dir]
if options.email:
command += ['--username', options.email]
RunCommand(command)
# TODO(maruel): Use a subdirectory per user?
current_time = str(datetime.datetime.now()).replace(':', '.')
file_name = (EscapeDot(options.user) + '.' + EscapeDot(options.name) +
......
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