Merge git://git.bogomips.org/git-svn
authorJunio C Hamano <gitster@pobox.com>
Mon, 20 May 2013 23:06:48 +0000 (16:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 May 2013 23:06:48 +0000 (16:06 -0700)
* git://git.bogomips.org/git-svn:
git-svn: introduce --parents parameter for commands branch and tag
git-svn: clarify explanation of --destination argument
git-svn: multiple fetch/branches/tags keys are supported

contrib/remote-helpers/git-remote-hg
index beb864b57e25a4297b7355d56c7c586e6f19d7be..01555dc3471422e050ebef110840bf98633786e7 100755 (executable)
@@ -954,6 +954,10 @@ def main(args):
     marks_path = os.path.join(dirname, 'marks-hg')
     marks = Marks(marks_path)
 
+    if sys.platform == 'win32':
+        import msvcrt
+        msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
+
     parser = Parser(repo)
     for line in parser:
         if parser.check('capabilities'):