Commit 6d0d0445 authored by Wiktor Garbacz's avatar Wiktor Garbacz Committed by Commit Bot

git-cl-upload: Fix reviewers notification with --no-squash.

Using --no-squash resulted in an exception being thrown, because issue
number is not set in that case.

Change-Id: Iaf0d7eb05851eba0d5231640c077b845bca486ee
Reviewed-on: https://chromium-review.googlesource.com/505509Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
Commit-Queue: Wiktor Garbacz <wiktorg@google.com>
parent c485d5a5
......@@ -660,6 +660,8 @@ def AddReviewers(host, change, reviewers=None, ccs=None, notify=True,
"""Add reviewers to a change."""
if not reviewers and not ccs:
return None
if not change:
return None
reviewers = frozenset(reviewers or [])
ccs = frozenset(ccs or [])
path = 'changes/%s/revisions/current/review' % change
......
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