@@ -514,7 +514,7 @@ 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
- if self .repo .git .version >= (1 , 7 , 0 , 0 ): kwargs ['progress' ] = True
517
+ if self .repo .git .version_info >= (1 , 7 , 0 , 0 ): kwargs ['progress' ] = True
518
518
proc = self .repo .git .fetch (self , refspec , with_extended_output = True , as_process = True , v = True , ** kwargs )
519
519
return self ._get_fetch_info_from_stderr (proc , progress or RemoteProgress ())
520
520
@@ -526,7 +526,7 @@ def pull(self, refspec=None, progress=None, **kwargs):
526
526
:param progress: see 'push' method
527
527
:param kwargs: Additional arguments to be passed to git-pull
528
528
:return: Please see 'fetch' method """
529
- if self .repo .git .version >= (1 , 7 , 0 , 0 ): kwargs ['progress' ] = True
529
+ if self .repo .git .version_info >= (1 , 7 , 0 , 0 ): kwargs ['progress' ] = True
530
530
proc = self .repo .git .pull (self , refspec , with_extended_output = True , as_process = True , v = True , ** kwargs )
531
531
return self ._get_fetch_info_from_stderr (proc , progress or RemoteProgress ())
532
532
@@ -548,7 +548,7 @@ def push(self, refspec=None, progress=None, **kwargs):
548
548
in their flags.
549
549
If the operation fails completely, the length of the returned IterableList will
550
550
be null."""
551
- if self .repo .git .version >= (1 , 7 , 0 , 0 ): kwargs ['progress' ] = True
551
+ if self .repo .git .version_info >= (1 , 7 , 0 , 0 ): kwargs ['progress' ] = True
552
552
proc = self .repo .git .push (self , refspec , porcelain = True , as_process = True , progress = True , v = True , ** kwargs )
553
553
return self ._get_push_info (proc , progress or RemoteProgress ())
554
554
0 commit comments