Skip to content

Commit 1fbc230

Browse files
ngcortesByron
authored andcommitted
Remove forced verbosity when fetching from a remote
1 parent 890fd8f commit 1fbc230

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git/remote.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def _assert_refspec(self):
751751
finally:
752752
config.release()
753753

754-
def fetch(self, refspec=None, progress=None, **kwargs):
754+
def fetch(self, refspec=None, progress=None, verbose=True, **kwargs):
755755
"""Fetch the latest changes for this remote
756756
757757
:param refspec:
@@ -770,6 +770,7 @@ def fetch(self, refspec=None, progress=None, **kwargs):
770770
underlying git-fetch does) - supplying a list rather than a string
771771
for 'refspec' will make use of this facility.
772772
:param progress: See 'push' method
773+
:param verbose: Boolean for verbose output
773774
:param kwargs: Additional arguments to be passed to git-fetch
774775
:return:
775776
IterableList(FetchInfo, ...) list of FetchInfo instances providing detailed
@@ -788,7 +789,7 @@ def fetch(self, refspec=None, progress=None, **kwargs):
788789
args = [refspec]
789790

790791
proc = self.repo.git.fetch(self, *args, as_process=True, with_stdout=False,
791-
universal_newlines=True, v=True, **kwargs)
792+
universal_newlines=True, v=verbose, **kwargs)
792793
res = self._get_fetch_info_from_stderr(proc, progress)
793794
if hasattr(self.repo.odb, 'update_cache'):
794795
self.repo.odb.update_cache()

0 commit comments

Comments
 (0)