@@ -325,7 +325,7 @@ class FetchInfo(IterableObj):
325
325
ERROR ,
326
326
) = [1 << x for x in range (8 )]
327
327
328
- _re_fetch_result = re .compile (r"^\s *(.) (\[[\w\s\ .$@]+\]|[\w\.$@]+)\s +(.+) -> ([^\s ]+)( \(.*\)?$)?" )
328
+ _re_fetch_result = re .compile (r"^ *(.) (\[[\w \ .$@]+\]|[\w\.$@]+) +(.+) -> ([^ ]+)( \(.*\)?$)?" )
329
329
330
330
_flag_map : Dict [flagKeyLiteral , int ] = {
331
331
"!" : ERROR ,
@@ -895,7 +895,7 @@ def _get_fetch_info_from_stderr(
895
895
None ,
896
896
progress_handler ,
897
897
finalizer = None ,
898
- decode_streams = False ,
898
+ decode_streams = True ,
899
899
kill_after_timeout = kill_after_timeout ,
900
900
)
901
901
@@ -1072,7 +1072,7 @@ def fetch(
1072
1072
Git .check_unsafe_options (options = list (kwargs .keys ()), unsafe_options = self .unsafe_git_fetch_options )
1073
1073
1074
1074
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
1076
1076
)
1077
1077
res = self ._get_fetch_info_from_stderr (proc , progress , kill_after_timeout = kill_after_timeout )
1078
1078
if hasattr (self .repo .odb , "update_cache" ):
@@ -1126,7 +1126,7 @@ def pull(
1126
1126
Git .check_unsafe_options (options = list (kwargs .keys ()), unsafe_options = self .unsafe_git_pull_options )
1127
1127
1128
1128
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
1130
1130
)
1131
1131
res = self ._get_fetch_info_from_stderr (proc , progress , kill_after_timeout = kill_after_timeout )
1132
1132
if hasattr (self .repo .odb , "update_cache" ):
0 commit comments