summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2016-06-13 09:00:28 +0200
committerSebastian Thiel <byronimo@gmail.com>2016-06-13 09:03:13 +0200
commitec830a25d39d4eb842ae016095ba257428772294 (patch)
treef8a2cde12e13f81b428d9985c081ae5f10f9538a
parente0b21f454ea43a5f67bc4905c641d95f8b6d96fd (diff)
downloadgitpython-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.py3
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.