Commit e4f0fe02 authored by nodir's avatar nodir Committed by Commit bot

fix git-cl-try without parameters

Master names were confused with bucket names

R=tandrii@chromium.org, qyearsley@chromium.org
BUG=661580

Review-Url: https://codereview.chromium.org/2482523002
parent dfe6bbbb
......@@ -350,7 +350,7 @@ def _get_bucket_map(changelist, options, option_parser):
change = changelist.GetChange(
changelist.GetCommonAncestorWithUpstream(), None)
# Get try masters from PRESUBMIT.py files.
return presubmit_support.DoGetTryMasters(
masters = presubmit_support.DoGetTryMasters(
change=change,
changed_files=change.LocalPaths(),
repository_root=settings.GetRoot(),
......@@ -358,6 +358,9 @@ def _get_bucket_map(changelist, options, option_parser):
project=None,
verbose=options.verbose,
output_stream=sys.stdout)
if masters is None:
return None
return {MASTER_PREFIX + m: b for m, b in masters.iteritems()}
if options.bucket:
return {options.bucket: {b: [] for b in options.bot}}
......
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