Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ac9c19

Browse files
committed
fix encoding problems on windows with not using default encoding but utf-8
1 parent c73b239 commit 2ac9c19

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

git/remote.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,7 @@ def fetch(self, refspec=None, progress=None, **kwargs):
786786
else:
787787
args = [refspec]
788788

789-
proc = self.repo.git.fetch(self, *args, as_process=True, with_stdout=False,
790-
universal_newlines=True, v=True, **kwargs)
789+
proc = self.repo.git.fetch(self, *args, as_process=True, with_stdout=False, v=True, **kwargs)
791790
res = self._get_fetch_info_from_stderr(proc, progress)
792791
if hasattr(self.repo.odb, 'update_cache'):
793792
self.repo.odb.update_cache()
@@ -805,8 +804,7 @@ def pull(self, refspec=None, progress=None, **kwargs):
805804
# No argument refspec, then ensure the repo's config has a fetch refspec.
806805
self._assert_refspec()
807806
kwargs = add_progress(kwargs, self.repo.git, progress)
808-
proc = self.repo.git.pull(self, refspec, with_stdout=False, as_process=True,
809-
universal_newlines=True, v=True, **kwargs)
807+
proc = self.repo.git.pull(self, refspec, with_stdout=False, as_process=True, v=True, **kwargs)
810808
res = self._get_fetch_info_from_stderr(proc, progress)
811809
if hasattr(self.repo.odb, 'update_cache'):
812810
self.repo.odb.update_cache()
@@ -840,8 +838,7 @@ def push(self, refspec=None, progress=None, **kwargs):
840838
If the operation fails completely, the length of the returned IterableList will
841839
be null."""
842840
kwargs = add_progress(kwargs, self.repo.git, progress)
843-
proc = self.repo.git.push(self, refspec, porcelain=True, as_process=True,
844-
universal_newlines=True, **kwargs)
841+
proc = self.repo.git.push(self, refspec, porcelain=True, as_process=True, **kwargs)
845842
return self._get_push_info(proc, progress)
846843

847844
@property

0 commit comments

Comments
 (0)