summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorNico <nicolas.g.cortes@intel.com>2020-04-08 14:33:20 -0700
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-04-11 15:30:09 +0800
commit1fbc2304fea19a2b6fc53f4f6448102768e3eeb2 (patch)
tree3b3ad1864bbbc35d77ce1294039653c43cc8fdb8 /git
parent890fd8f03ae56e39f7dc26471337f97e9ccc4749 (diff)
downloadgitpython-1fbc2304fea19a2b6fc53f4f6448102768e3eeb2.tar.gz
Remove forced verbosity when fetching from a remote
Diffstat (limited to 'git')
-rw-r--r--git/remote.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py
index 05d7d0db..abb33e9c 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -751,7 +751,7 @@ class Remote(LazyMixin, Iterable):
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:
@@ -770,6 +770,7 @@ class Remote(LazyMixin, Iterable):
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
@@ -788,7 +789,7 @@ class Remote(LazyMixin, Iterable):
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()