mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-10-23 13:48:23 +00:00
Print '(no branches)' if the output of repo branches is empty
This way its clear the command did something, and reported that it had nothing to show you, because you have no active branches in this client. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
1 parent
552ac89929
commit
4e3d6739a1
1 file changed
+4
@@ -96,6 +96,10 @@ Summarizes the currently available topic branches.
|
||||
n.append(name)
|
||||
names = n
|
||||
|
||||
if not names:
|
||||
print >>sys.stderr, ' (no branches)'
|
||||
return
|
||||
|
||||
width = 25
|
||||
for name in names:
|
||||
if width < len(name):
|
||||
|
||||
Reference in new issue
Block a user