@@ -663,8 +663,8 @@ def fetch(self, refspec=None, progress=None, **kwargs):
663
663
else :
664
664
args = [refspec ]
665
665
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 )
668
668
res = self ._get_fetch_info_from_stderr (proc , progress or RemoteProgress ())
669
669
if hasattr (self .repo .odb , 'update_cache' ):
670
670
self .repo .odb .update_cache ()
@@ -682,7 +682,8 @@ def pull(self, refspec=None, progress=None, **kwargs):
682
682
# No argument refspec, then ensure the repo's config has a fetch refspec.
683
683
self ._assert_refspec ()
684
684
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 )
686
687
res = self ._get_fetch_info_from_stderr (proc , progress or RemoteProgress ())
687
688
if hasattr (self .repo .odb , 'update_cache' ):
688
689
self .repo .odb .update_cache ()
@@ -707,7 +708,8 @@ def push(self, refspec=None, progress=None, **kwargs):
707
708
If the operation fails completely, the length of the returned IterableList will
708
709
be null."""
709
710
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 )
711
713
return self ._get_push_info (proc , progress or RemoteProgress ())
712
714
713
715
@property
0 commit comments