summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-07 12:37:49 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-07 12:37:49 +0100
commit87a6ffa13ae2951a168cde5908c7a94b16562b96 (patch)
tree4fa71b51e4d017ad2188c6c385043caba29e868c /git/remote.py
parent763ef75d12f0ad6e4b79a7df304c7b5f1b5a11f2 (diff)
downloadgitpython-87a6ffa13ae2951a168cde5908c7a94b16562b96.tar.gz
Fix flake8
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py
index 85f4ebf2..87db5dd4 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -40,6 +40,7 @@ __all__ = ('RemoteProgress', 'PushInfo', 'FetchInfo', 'Remote')
#{ Utilities
+
def add_progress(kwargs, git, progress):
"""Add the --progress flag to the given kwargs dict if supported by the
git command. If the actual progress in the given progress instance is not
@@ -510,6 +511,7 @@ class Remote(LazyMixin, Iterable):
cmds = set(PushInfo._flag_map.keys()) & set(FetchInfo._flag_map.keys())
progress_handler = progress.new_message_handler()
+
def my_progress_handler(line):
for pline in progress_handler(line):
if line.startswith('fatal:'):
@@ -520,11 +522,11 @@ class Remote(LazyMixin, Iterable):
fetch_info_lines.append(line)
continue
# end find command code
- # end for each comand code we know
+ # end for each comand code we know
# end for each line progress didn't handle
# end
- # We are only interested in stderr here ...
+ # We are only interested in stderr here ...
handle_process_output(proc, None, my_progress_handler, finalize_process)
# read head information