summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/fetch_strategy.py4
-rw-r--r--lib/spack/spack/test/git_fetch.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py
index fd313e0463..3b22cfb94c 100644
--- a/lib/spack/spack/fetch_strategy.py
+++ b/lib/spack/spack/fetch_strategy.py
@@ -930,7 +930,9 @@ class GitFetchStrategy(VCSFetchStrategy):
dest = self.stage.source_path
git = self.git
- if self.git_version < spack.version.Version("2.25.0.0"):
+ if self.git_version < spack.version.Version("2.26.0"):
+ # technically this should be supported for 2.25, but bumping for OS issues
+ # see https://github.com/spack/spack/issues/45771
# code paths exist where the package is not set. Assure some indentifier for the
# package that was configured for sparse checkout exists in the error message
identifier = str(self.url)
diff --git a/lib/spack/spack/test/git_fetch.py b/lib/spack/spack/test/git_fetch.py
index b709780651..eb2e03db07 100644
--- a/lib/spack/spack/test/git_fetch.py
+++ b/lib/spack/spack/test/git_fetch.py
@@ -415,7 +415,7 @@ def test_git_sparse_paths_partial_clone(
for p in sparse_paths:
assert os.path.isdir(p)
- if git_version < Version("2.25.0.0"):
+ if git_version < Version("2.26.0.0"):
# older versions of git should fall back to a full clone
for p in omitted_paths:
assert os.path.isdir(p)