aboutsummaryrefslogtreecommitdiffstats
path: root/be
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-07 19:51:21 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-07 19:51:21 -0500
commita06030436d3940dddfba37b344f90651366d67e1 (patch)
treeaa465793f2ab157257b96012fbcc421df97835eb /be
parentb7901b5054a4bf51798098cd3aaa3eb33bb4ee5e (diff)
downloadbugseverywhere-a06030436d3940dddfba37b344f90651366d67e1.tar.gz
Don't run pager for commands that may need a tty (e.g. for editor)
Diffstat (limited to 'be')
-rwxr-xr-xbe13
1 files changed, 7 insertions, 6 deletions
diff --git a/be b/be
index f026c05..18692a4 100755
--- 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: