Skip to content
Merged
Changes from all commits
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
5 changes: 3 additions & 2 deletions git/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def _assert_refspec(self):
finally:
config.release()

def fetch(self, refspec=None, progress=None, **kwargs):
def fetch(self, refspec=None, progress=None, verbose=True, **kwargs):
"""Fetch the latest changes for this remote

:param refspec:
Expand All @@ -770,6 +770,7 @@ def fetch(self, refspec=None, progress=None, **kwargs):
underlying git-fetch does) - supplying a list rather than a string
for 'refspec' will make use of this facility.
:param progress: See 'push' method
:param verbose: Boolean for verbose output
:param kwargs: Additional arguments to be passed to git-fetch
:return:
IterableList(FetchInfo, ...) list of FetchInfo instances providing detailed
Expand All @@ -788,7 +789,7 @@ def fetch(self, refspec=None, progress=None, **kwargs):
args = [refspec]

proc = self.repo.git.fetch(self, *args, as_process=True, with_stdout=False,
universal_newlines=True, v=True, **kwargs)
universal_newlines=True, v=verbose, **kwargs)
res = self._get_fetch_info_from_stderr(proc, progress)
if hasattr(self.repo.odb, 'update_cache'):
self.repo.odb.update_cache()
Expand Down