Skip to content

Commit ec830a2

Browse files
committed
fix(repo): prevent error messages from being swallowed
This issue must have rosen from `to_progress_instance()` being inserted in a spot where `None` was a legit value. Fixes #462
1 parent e0b21f4 commit ec830a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git/repo/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,8 @@ def init(cls, path=None, mkdir=True, odbt=DefaultDBType, **kwargs):
873873

874874
@classmethod
875875
def _clone(cls, git, url, path, odb_default_type, progress, **kwargs):
876-
progress = to_progress_instance(progress)
876+
if progress is not None:
877+
progress = to_progress_instance(progress)
877878

878879
# special handling for windows for path at which the clone should be
879880
# created.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy