Skip to content

Progress parsing #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add --progress flag.
Recent versions of git do not output progress without this flag when not
connected to a tty.
  • Loading branch information
int3 committed May 23, 2011
commit a0ca05e6d6b82161e8d9277f6e7cae8e544eaa23
6 changes: 3 additions & 3 deletions git/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def fetch(self, refspec=None, progress=None, **kwargs):
:note:
As fetch does not provide progress information to non-ttys, we cannot make
it available here unfortunately as in the 'push' method."""
proc = self.repo.git.fetch(self, refspec, with_extended_output=True, as_process=True, v=True, **kwargs)
proc = self.repo.git.fetch(self, refspec, with_extended_output=True, as_process=True, v=True, progress=True, **kwargs)
return self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())

def pull(self, refspec=None, progress=None, **kwargs):
Expand All @@ -557,7 +557,7 @@ def pull(self, refspec=None, progress=None, **kwargs):
:param progress: see 'push' method
:param kwargs: Additional arguments to be passed to git-pull
:return: Please see 'fetch' method """
proc = self.repo.git.pull(self, refspec, with_extended_output=True, as_process=True, v=True, **kwargs)
proc = self.repo.git.pull(self, refspec, with_extended_output=True, as_process=True, v=True, progress=True, **kwargs)
return self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())

def push(self, refspec=None, progress=None, **kwargs):
Expand All @@ -578,7 +578,7 @@ def push(self, refspec=None, progress=None, **kwargs):
in their flags.
If the operation fails completely, the length of the returned IterableList will
be null."""
proc = self.repo.git.push(self, refspec, porcelain=True, as_process=True, **kwargs)
proc = self.repo.git.push(self, refspec, porcelain=True, as_process=True, progress=True, **kwargs)
return self._get_push_info(proc, progress or RemoteProgress())

@property
Expand Down