Only trigger stacked changes dogfood path when in squash mode.

Bug: 1419551
Change-Id: Idbc345798ba81c3e1abd2038db8fadbef0b7391e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4291331
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
Auto-Submit: Joanna Wang <jojwang@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
changes/31/4291331/2
Joanna Wang 2 years ago committed by LUCI CQ
parent eee53367c1
commit b54d0f013b

@ -4762,7 +4762,7 @@ def CMDupload(parser, args):
# Load default for user, repo, squash=true, in this order. # Load default for user, repo, squash=true, in this order.
options.squash = settings.GetSquashGerritUploads() options.squash = settings.GetSquashGerritUploads()
if os.environ.get('DOGFOOD_STACKED_CHANGES') == '1': if options.squash and os.environ.get('DOGFOOD_STACKED_CHANGES') == '1':
if options.dependencies: if options.dependencies:
parser.error('--dependencies is not available for this workflow.') parser.error('--dependencies is not available for this workflow.')

Loading…
Cancel
Save