Commit 665a4398 authored by Aaron Gable's avatar Aaron Gable Committed by Commit Bot

git-cl-upload: warn if no rietveld project specified

Bug: 600469
Change-Id: I4ebc7b0f28204ae4a4649e51d6aac8fc2f43ed20
Reviewed-on: https://chromium-review.googlesource.com/556152Reviewed-by: 's avatarAndrew Bonventre <andybons@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
parent 5b593358
......@@ -2311,6 +2311,11 @@ class _RietveldChangelistImpl(_ChangelistCodereviewBase):
project = settings.GetProject()
if project:
upload_args.extend(['--project', project])
else:
print()
print('WARNING: Uploading without a project specified. Please ensure '
'your repo\'s codereview.settings has a "PROJECT: foo" line.')
print()
try:
upload_args = ['upload'] + upload_args + args
......
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