2
0
Эх сурвалжийг харах

Pass the <errstream> parameter through from porcelain.clone() to porcelain.fetch().

grun 6 жил өмнө
parent
commit
db5525077e

+ 2 - 1
dulwich/porcelain.py

@@ -326,7 +326,8 @@ def clone(source, target=None, bare=False, checkout=None,
 
 
     reflog_message = b'clone: from ' + source.encode('utf-8')
     reflog_message = b'clone: from ' + source.encode('utf-8')
     try:
     try:
-        fetch_result = fetch(r, source, origin, message=reflog_message)
+        fetch_result = fetch(
+            r, source, origin, errstream=errstream, message=reflog_message)
         target_config = r.get_config()
         target_config = r.get_config()
         if not isinstance(source, bytes):
         if not isinstance(source, bytes):
             source = source.encode(DEFAULT_ENCODING)
             source = source.encode(DEFAULT_ENCODING)