diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2016-05-29 10:39:14 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2016-05-29 10:39:14 +0200 |
commit | 29724818764af6b4d30e845d9280947584078aed (patch) | |
tree | cb32c392d214ad18032a9a0cc95345e9ebf50c19 /git/remote.py | |
parent | ce87a2bec5d9920784a255f11687f58bb5002c4c (diff) | |
download | gitpython-29724818764af6b4d30e845d9280947584078aed.tar.gz |
fix(remote): Add CallableRemoteProgress
That way, the base type doesn't need any adjustment.
Related to #450
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py index 946d0165..6e3d65d4 100644 --- a/git/remote.py +++ b/git/remote.py @@ -24,7 +24,8 @@ from git.util import ( LazyMixin, Iterable, IterableList, - RemoteProgress + RemoteProgress, + CallableRemoteProgress ) from git.util import ( join_path, @@ -65,7 +66,7 @@ def to_progress_instance(progress): """ # new API only needs progress as a function if callable(progress): - return RemoteProgress(progress) + return CallableRemoteProgress(progress) # where None is passed create a parser that eats the progress elif progress is None: |