aboutsummaryrefslogtreecommitdiff
path: root/tests/remote-git.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-11-02 16:00:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-11-02 16:37:53 +0300
commite2c792fc0453a0d332a9bd9a2c002f04da82f1e3 (patch)
tree60a9f24edb321c813760b3e82ff91aa9b0bc0508 /tests/remote-git.testscript
parent2b3ee000c596ff27d24415cb498e1fc3439d2249 (diff)
Add reduced support for git versions [2.11.0 2.14.0)
Diffstat (limited to 'tests/remote-git.testscript')
-rw-r--r--tests/remote-git.testscript10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/remote-git.testscript b/tests/remote-git.testscript
index 2ce0fa0..595220d 100644
--- a/tests/remote-git.testscript
+++ b/tests/remote-git.testscript
@@ -26,11 +26,15 @@ end
+echo "$git_version" | sed -e 's/(\d+).*/\1/' | set git_version_major
+echo "$git_version" | sed -e 's/\d+\.(\d+).*/\1/' | set git_version_minor
-# This flag must be used by testscripts to decide if they should skip git
-# repository-related tests.
+# These flags must be used by testscripts to decide if they should skip git
+# repository-related tests. See bpkg/fetch-git.cxx for the functionality
+# reduction details for partially supported git versions.
#
git_supported = ($git_version_major > 2 || \
- $git_version_major == 2 && $git_version_minor >= 14)
+ $git_version_major == 2 && $git_version_minor >= 11)
+
+git_fully_supported = ($git_version_major > 2 || \
+ $git_version_major == 2 && $git_version_minor >= 14)
# Output directory path that testscripts must use to prepare repositories
# required by tests they contain.