提交 28e0367f 编写于 作者: N Nicolas Boichat 提交者: Simon Glass

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: NNicolas Boichat <drinkcat@chromium.org>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 754c05ca
......@@ -48,8 +48,9 @@ def prepare_patches(col, branch, count, start, end, ignore_binary):
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册