Minor tweak: use self.git everywhere in get fetch strategy.
This commit is contained in:
parent
c774455fc5
commit
ba53ccb6b3
@ -345,8 +345,7 @@ def __init__(self, **kwargs):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def git_version(self):
|
def git_version(self):
|
||||||
git = which('git', required=True)
|
vstring = self.git('--version', return_output=True).lstrip('git version ')
|
||||||
vstring = git('--version', return_output=True).lstrip('git version ')
|
|
||||||
return Version(vstring)
|
return Version(vstring)
|
||||||
|
|
||||||
|
|
||||||
@ -356,6 +355,7 @@ def git(self):
|
|||||||
self._git = which('git', required=True)
|
self._git = which('git', required=True)
|
||||||
return self._git
|
return self._git
|
||||||
|
|
||||||
|
|
||||||
@_needs_stage
|
@_needs_stage
|
||||||
def fetch(self):
|
def fetch(self):
|
||||||
self.stage.chdir()
|
self.stage.chdir()
|
||||||
|
Loading…
Reference in New Issue
Block a user