The user can either count the number of patches, or provide a
tracking branch.

Signed-off-by: Nicolas Boichat <drink...@chromium.org>
---

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

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
-- 
2.27.0.389.gc38d7665816-goog

Reply via email to