@@ -514,7 +514,8 @@ def fetch(self, refspec=None, progress=None, **kwargs):
514
514
:note:
515
515
As fetch does not provide progress information to non-ttys, we cannot make
516
516
it available here unfortunately as in the 'push' method."""
517
- proc = self .repo .git .fetch (self , refspec , with_extended_output = True , as_process = True , v = True , progress = True , ** kwargs )
517
+ if self .repo .git .version >= (1 , 7 , 0 , 0 ): kwargs ['progress' ] = True
518
+ proc = self .repo .git .fetch (self , refspec , with_extended_output = True , as_process = True , v = True , ** kwargs )
518
519
return self ._get_fetch_info_from_stderr (proc , progress or RemoteProgress ())
519
520
520
521
def pull (self , refspec = None , progress = None , ** kwargs ):
@@ -525,7 +526,8 @@ def pull(self, refspec=None, progress=None, **kwargs):
525
526
:param progress: see 'push' method
526
527
:param kwargs: Additional arguments to be passed to git-pull
527
528
:return: Please see 'fetch' method """
528
- proc = self .repo .git .pull (self , refspec , with_extended_output = True , as_process = True , v = True , progress = True , ** kwargs )
529
+ if self .repo .git .version >= (1 , 7 , 0 , 0 ): kwargs ['progress' ] = True
530
+ proc = self .repo .git .pull (self , refspec , with_extended_output = True , as_process = True , v = True , ** kwargs )
529
531
return self ._get_fetch_info_from_stderr (proc , progress or RemoteProgress ())
530
532
531
533
def push (self , refspec = None , progress = None , ** kwargs ):
@@ -546,7 +548,8 @@ def push(self, refspec=None, progress=None, **kwargs):
546
548
in their flags.
547
549
If the operation fails completely, the length of the returned IterableList will
548
550
be null."""
549
- proc = self .repo .git .push (self , refspec , porcelain = True , as_process = True , progress = True , ** kwargs )
551
+ if self .repo .git .version >= (1 , 7 , 0 , 0 ): kwargs ['progress' ] = True
552
+ proc = self .repo .git .push (self , refspec , porcelain = True , as_process = True , progress = True , v = True , ** kwargs )
550
553
return self ._get_push_info (proc , progress or RemoteProgress ())
551
554
552
555
@property
0 commit comments