Commit 63906bac authored by mgiuca@chromium.org's avatar mgiuca@chromium.org

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
parent 627d9002
......@@ -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))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment