Allow refs/branch-heads

This is necessary for uploading v8 changes.

Bug: None
Change-Id: I2847c4bcddacf1985c0c230b892716942ae2b031
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5332374
Auto-Submit: Eric Leese <leese@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Eric Leese <leese@chromium.org>
changes/74/5332374/4
Eric Leese 1 year ago committed by LUCI CQ
parent fbb0301f1f
commit 875647ed03

@ -1311,7 +1311,7 @@ class Changelist(object):
self.branchref = branchref
if self.branchref:
assert branchref.startswith('refs/heads/')
assert branchref.startswith(('refs/heads/', 'refs/branch-heads/'))
self.branch = scm.GIT.ShortBranchName(self.branchref)
else:
self.branch = None

Loading…
Cancel
Save