Index: git_map_branches.py |
diff --git a/git_map_branches.py b/git_map_branches.py |
index 6105f5e8757359fc4a15b0acbc469244e7ba5964..50b403d4c9637f49a48f549166d57bf5ec541f15 100755 |
--- a/git_map_branches.py |
+++ b/git_map_branches.py |
@@ -27,6 +27,7 @@ Branches are colorized as follows: |
import argparse |
import collections |
+import os |
import sys |
import subprocess2 |
@@ -271,7 +272,7 @@ class BranchMapper(object): |
def main(argv): |
- colorama.init() |
+ colorama.init(wrap="TERM" not in os.environ) |
if get_git_version() < MIN_UPSTREAM_TRACK_GIT_VERSION: |
print >> sys.stderr, ( |
'This tool will not show all tracking information for git version ' |