Better tooling

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299614 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_map_branches.py b/git_map_branches.py
index 6105f5e..50b403d 100755
--- a/git_map_branches.py
+++ b/git_map_branches.py
@@ -27,6 +27,7 @@
 
 import argparse
 import collections
+import os
 import sys
 import subprocess2
 
@@ -271,7 +272,7 @@
 
 
 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 '