diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2016-06-13 09:00:28 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2016-06-13 09:03:13 +0200 |
commit | ec830a25d39d4eb842ae016095ba257428772294 (patch) | |
tree | f8a2cde12e13f81b428d9985c081ae5f10f9538a | |
parent | e0b21f454ea43a5f67bc4905c641d95f8b6d96fd (diff) | |
download | gitpython-ec830a25d39d4eb842ae016095ba257428772294.tar.gz |
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
-rw-r--r-- | git/repo/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index f43cc462..282dfc15 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -873,7 +873,8 @@ class Repo(object): @classmethod def _clone(cls, git, url, path, odb_default_type, progress, **kwargs): - progress = to_progress_instance(progress) + if progress is not None: + progress = to_progress_instance(progress) # special handling for windows for path at which the clone should be # created. |