@@ -663,8 +663,8 @@ def fetch(self, refspec=None, progress=None, **kwargs):
663663else :
664664args = [refspec ]
665665
666- proc = self .repo .git .fetch (self ,* args ,as_process = True ,with_stdout = False ,v = True ,
667- ** kwargs )
666+ proc = self .repo .git .fetch (self ,* args ,as_process = True ,with_stdout = False ,
667+ universal_newlines = True , v = True , ** kwargs )
668668res = self ._get_fetch_info_from_stderr (proc ,progress or RemoteProgress ())
669669if hasattr (self .repo .odb ,'update_cache' ):
670670self .repo .odb .update_cache ()
@@ -682,7 +682,8 @@ def pull(self, refspec=None, progress=None, **kwargs):
682682# No argument refspec, then ensure the repo's config has a fetch refspec.
683683self ._assert_refspec ()
684684kwargs = add_progress (kwargs ,self .repo .git ,progress )
685- proc = self .repo .git .pull (self ,refspec ,with_stdout = False ,as_process = True ,v = True ,** kwargs )
685+ proc = self .repo .git .pull (self ,refspec ,with_stdout = False ,as_process = True ,
686+ universal_newlines = True ,v = True ,** kwargs )
686687res = self ._get_fetch_info_from_stderr (proc ,progress or RemoteProgress ())
687688if hasattr (self .repo .odb ,'update_cache' ):
688689self .repo .odb .update_cache ()
@@ -707,7 +708,8 @@ def push(self, refspec=None, progress=None, **kwargs):
707708 If the operation fails completely, the length of the returned IterableList will
708709 be null."""
709710kwargs = add_progress (kwargs ,self .repo .git ,progress )
710- proc = self .repo .git .push (self ,refspec ,porcelain = True ,as_process = True ,** kwargs )
711+ proc = self .repo .git .push (self ,refspec ,porcelain = True ,as_process = True ,
712+ universal_newlines = True ,** kwargs )
711713return self ._get_push_info (proc ,progress or RemoteProgress ())
712714
713715@property