mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
patman: When no tracking branch is provided, tell the user
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>
This commit is contained in:
committed by
Simon Glass
parent
754c05caf3
commit
28e0367fc8
@@ -48,8 +48,9 @@ def prepare_patches(col, branch, count, start, end, ignore_binary):
|
|||||||
count = (gitutil.CountCommitsToBranch(branch) - start)
|
count = (gitutil.CountCommitsToBranch(branch) - start)
|
||||||
|
|
||||||
if not count:
|
if not count:
|
||||||
sys.exit(col.Color(col.RED,
|
str = 'No commits found to process - please use -c flag, or run:\n' \
|
||||||
'No commits found to process - please use -c flag'))
|
' git branch --set-upstream-to remote/branch'
|
||||||
|
sys.exit(col.Color(col.RED, str))
|
||||||
|
|
||||||
# Read the metadata from the commits
|
# Read the metadata from the commits
|
||||||
to_do = count - end
|
to_do = count - end
|
||||||
|
Reference in New Issue
Block a user