mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
git-hyper-blame: Fix pagination (uses less if on a TTY).
This was broken in r299682 (adding setup_color). git_hyper_blame now initializes setup_color. BUG=607771 Review-Url: https://codereview.chromium.org/1930813003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@300316 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -17,6 +17,7 @@ import sys
|
||||
|
||||
import git_common
|
||||
import git_dates
|
||||
import setup_color
|
||||
|
||||
|
||||
logging.getLogger().setLevel(logging.INFO)
|
||||
@@ -385,5 +386,6 @@ def main(args, stdout=sys.stdout, stderr=sys.stderr):
|
||||
|
||||
|
||||
if __name__ == '__main__': # pragma: no cover
|
||||
setup_color.init()
|
||||
with git_common.less() as less_input:
|
||||
sys.exit(main(sys.argv[1:], stdout=less_input))
|
||||
|
||||
Reference in New Issue
Block a user