Explorar o código

Pass optional arguments to fetch() while cloning

semyon-slepov %!s(int64=6) %!d(string=hai) anos
pai
achega
5c90fcd853
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/porcelain.py

+ 1 - 1
dulwich/porcelain.py

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