Don't run pager for commands that may need a tty (e.g. for editor)
authorW. Trevor King <wking@drexel.edu>
Tue, 8 Dec 2009 00:51:21 +0000 (19:51 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 8 Dec 2009 00:51:21 +0000 (19:51 -0500)
be

diff --git a/be b/be
index f026c05a37ca83b648b1f1fe3965ad89c1caeae4..18692a4e25f5687a257f02cb2e34d09b0a8b59ab 100755 (executable)
--- a/be
+++ b/be
@@ -64,12 +64,13 @@ if options.version == True or options.verbose_version == True:
     print version.version(verbose=options.verbose_version)
     sys.exit(0)
 
-paginate = 'auto'
-if options.paginate == True:
-    paginate = 'always'
-if options.no_pager== True:
-    paginate = 'never'
-pager.run_pager(paginate)
+if len(args) > 0 and args[0] not in ['comment', 'commit']:
+    paginate = 'auto'
+    if options.paginate == True:
+        paginate = 'always'
+    if options.no_pager== True:
+        paginate = 'never'
+    pager.run_pager(paginate)
 
 try:
     if len(args) == 0: