diff options
Diffstat (limited to 'git/repo/base.py')
| -rw-r--r-- | git/repo/base.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index bc5a7c35..282dfc15 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -32,7 +32,8 @@ from git.index import IndexFile from git.config import GitConfigParser from git.remote import ( Remote, - add_progress + add_progress, + to_progress_instance ) from git.db import GitCmdObjectDB @@ -872,6 +873,9 @@ class Repo(object): @classmethod def _clone(cls, git, url, path, odb_default_type, progress, **kwargs): + if progress is not None: + progress = to_progress_instance(progress) + # special handling for windows for path at which the clone should be # created. # tilde '~' will be expanded to the HOME no matter where the ~ occours. Hence |
