diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-12-04 10:51:23 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-12-04 10:51:23 -0800 |
commit | ba53ccb6b3d6506f83d2ecc426f3d22736440a1a (patch) | |
tree | 354e3a343cd6a76861efe12ecda284fa3a0c5c6a | |
parent | c774455fc5df90d15d7aad5d239eb59c1ad354eb (diff) | |
download | spack-ba53ccb6b3d6506f83d2ecc426f3d22736440a1a.tar.gz spack-ba53ccb6b3d6506f83d2ecc426f3d22736440a1a.tar.bz2 spack-ba53ccb6b3d6506f83d2ecc426f3d22736440a1a.tar.xz spack-ba53ccb6b3d6506f83d2ecc426f3d22736440a1a.zip |
Minor tweak: use self.git everywhere in get fetch strategy.
-rw-r--r-- | lib/spack/spack/fetch_strategy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py index 0e848652ae..c463a0e5d8 100644 --- a/lib/spack/spack/fetch_strategy.py +++ b/lib/spack/spack/fetch_strategy.py @@ -345,8 +345,7 @@ class GitFetchStrategy(VCSFetchStrategy): @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 @@ class GitFetchStrategy(VCSFetchStrategy): self._git = which('git', required=True) return self._git + @_needs_stage def fetch(self): self.stage.chdir() |