diff mbox series

[2/2] patman: When no tracking branch is provided, tell the user

Message ID 20200713104956.2.Ib0ed6ba8cc13905a382730658d814d9a3948feee@changeid
State New
Headers show
Series [1/2] patman: Make sure sendemail.suppresscc is (un)set correctly | expand

Commit Message

Nicolas Boichat July 13, 2020, 2:50 a.m. UTC
The user can either count the number of patches, or provide a
tracking branch.

Signed-off-by: Nicolas Boichat <drinkcat at chromium.org>
---

 tools/patman/main.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Simon Glass July 14, 2020, 1:32 p.m. UTC | #1
On Sun, 12 Jul 2020 at 20:50, Nicolas Boichat <drinkcat at chromium.org> wrote:
>
> The user can either count the number of patches, or provide a
> tracking branch.
>
> Signed-off-by: Nicolas Boichat <drinkcat at chromium.org>
> ---
>
>  tools/patman/main.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>
diff mbox series

Patch

diff --git a/tools/patman/main.py b/tools/patman/main.py
index a4aa5274c9..2e6ad48c6a 100755
--- a/tools/patman/main.py
+++ b/tools/patman/main.py
@@ -140,7 +140,8 @@  else:
 
     col = terminal.Color()
     if not options.count:
-        str = '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