@@ -663,8 +663,8 @@ def fetch(self, refspec=None, progress=None, **kwargs):
663663 else :
664664 args = [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 )
668668 res = self ._get_fetch_info_from_stderr (proc , progress or RemoteProgress ())
669669 if hasattr (self .repo .odb , 'update_cache' ):
670670 self .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.
683683 self ._assert_refspec ()
684684 kwargs = 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 )
686687 res = self ._get_fetch_info_from_stderr (proc , progress or RemoteProgress ())
687688 if hasattr (self .repo .odb , 'update_cache' ):
688689 self .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."""
709710 kwargs = 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 )
711713 return self ._get_push_info (proc , progress or RemoteProgress ())
712714
713715 @property
0 commit comments