@@ -325,7 +325,7 @@ class FetchInfo(IterableObj):
325325 ERROR,
326326 ) = [1 << x for x in range(8)]
327327
328- _re_fetch_result = re.compile(r"^\s *(.) (\[[\w\s\ .$@]+\]|[\w\.$@]+)\s +(.+) -> ([^\s ]+)( \(.*\)?$)?")
328+ _re_fetch_result = re.compile(r"^ *(.) (\[[\w \ .$@]+\]|[\w\.$@]+) +(.+) -> ([^ ]+)( \(.*\)?$)?")
329329
330330 _flag_map: Dict[flagKeyLiteral, int] = {
331331 "!": ERROR,
@@ -895,7 +895,7 @@ def _get_fetch_info_from_stderr(
895895 None,
896896 progress_handler,
897897 finalizer=None,
898- decode_streams=False ,
898+ decode_streams=True ,
899899 kill_after_timeout=kill_after_timeout,
900900 )
901901
@@ -1072,7 +1072,7 @@ def fetch(
10721072 Git.check_unsafe_options(options=list(kwargs.keys()), unsafe_options=self.unsafe_git_fetch_options)
10731073
10741074 proc = self.repo.git.fetch(
1075- "--", self, *args, as_process=True, with_stdout=False, universal_newlines=True , v=verbose, **kwargs
1075+ "--", self, *args, as_process=True, with_stdout=False, universal_newlines=False , v=verbose, **kwargs
10761076 )
10771077 res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
10781078 if hasattr(self.repo.odb, "update_cache"):
@@ -1126,7 +1126,7 @@ def pull(
11261126 Git.check_unsafe_options(options=list(kwargs.keys()), unsafe_options=self.unsafe_git_pull_options)
11271127
11281128 proc = self.repo.git.pull(
1129- "--", self, refspec, with_stdout=False, as_process=True, universal_newlines=True , v=True, **kwargs
1129+ "--", self, refspec, with_stdout=False, as_process=True, universal_newlines=False , v=True, **kwargs
11301130 )
11311131 res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
11321132 if hasattr(self.repo.odb, "update_cache"):
0 commit comments