@@ -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