Browse Source

Pass optional arguments to fetch() while cloning

semyon-slepov 6 years ago
parent
commit
5c90fcd853
1 changed files with 1 additions and 1 deletions
  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)