Minor tweak: use self.git everywhere in get fetch strategy.

This commit is contained in:
Todd Gamblin 2014-12-04 10:51:23 -08:00
parent c774455fc5
commit ba53ccb6b3

View File

@ -345,8 +345,7 @@ def __init__(self, **kwargs):
@property
def git_version(self):
git = which('git', required=True)
vstring = git('--version', return_output=True).lstrip('git version ')
vstring = self.git('--version', return_output=True).lstrip('git version ')
return Version(vstring)
@ -356,6 +355,7 @@ def git(self):
self._git = which('git', required=True)
return self._git
@_needs_stage
def fetch(self):
self.stage.chdir()