The user can either count the number of patches, or provide a
tracking branch.
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
count = (gitutil.CountCommitsToBranch(branch) - start)
if not count:
- sys.exit(col.Color(col.RED,
- 'No commits found to process - please use -c flag'))
+ str = 'No commits found to process - please use -c flag, or run:\n' \
+ ' git branch --set-upstream-to remote/branch'
+ sys.exit(col.Color(col.RED, str))
# Read the metadata from the commits
to_do = count - end