@@ -751,7 +751,7 @@ def _assert_refspec(self):
751
751
finally :
752
752
config .release ()
753
753
754
- def fetch (self , refspec = None , progress = None , ** kwargs ):
754
+ def fetch (self , refspec = None , progress = None , verbose = True , ** kwargs ):
755
755
"""Fetch the latest changes for this remote
756
756
757
757
:param refspec:
@@ -770,6 +770,7 @@ def fetch(self, refspec=None, progress=None, **kwargs):
770
770
underlying git-fetch does) - supplying a list rather than a string
771
771
for 'refspec' will make use of this facility.
772
772
:param progress: See 'push' method
773
+ :param verbose: Boolean for verbose output
773
774
:param kwargs: Additional arguments to be passed to git-fetch
774
775
:return:
775
776
IterableList(FetchInfo, ...) list of FetchInfo instances providing detailed
@@ -788,7 +789,7 @@ def fetch(self, refspec=None, progress=None, **kwargs):
788
789
args = [refspec ]
789
790
790
791
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 )
792
793
res = self ._get_fetch_info_from_stderr (proc , progress )
793
794
if hasattr (self .repo .odb , 'update_cache' ):
794
795
self .repo .odb .update_cache ()
0 commit comments