Skip to content

git 1.7.1 support

We support CentOS/6 and it ships with git v1.7.1.

This new jobs ensures that we are generating shell scripts that executorshell can when git v.17.1 is available.

!791 (merged) run tests on git v1.7.1 and this test shows that we have 3 features (and 1 test) that are not working on git v1.7.1 https://gitlab.com/gitlab-org/gitlab-runner/-/jobs/45030104

TestBuildWithGitSubmoduleStrategyRecursive

Setting GIT_SUBMODULE_STRATEGY=recursive is not compatible

--- FAIL: TestBuildWithGitSubmoduleStrategyRecursive (0.09s)
    --- FAIL: TestBuildWithGitSubmoduleStrategyRecursive/bash (0.09s)
    	executor_shell_test.go:75: Build directory: /tmp/gitlab-runner-shell-executor-test349846939
    	executor_shell_test.go:64: Running with gitlab-runner dev (HEAD)
    		  on  ()
    		Using Shell executor...
    		Running on runner-a38ae51b-project-250833-concurrent-2...
    		Cloning repository...
    		Initialized empty Git repository in /tmp/gitlab-runner-shell-executor-test349846939/0/project-0/.git/
    		Checking out 6907208d as master...
    		Updating/initializing submodules recursively...
    		Usage: git submodule [--quiet] add [-b branch] [-f|--force] [--reference <repository>] [--] <repository> [<path>]
    		   or: git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...]
    		   or: git submodule [--quiet] init [--] [<path>...]
    		   or: git submodule [--quiet] update [--init] [-N|--no-fetch] [--rebase] [--reference <repository>] [--merge] [--recursive] [--] [<path>...]
    		   or: git submodule [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...]
    		   or: git submodule [--quiet] foreach [--recursive] <command>
    		   or: git submodule [--quiet] sync [--] [<path>...]
    		ERROR: Job failed: exit status 1

TestBuildWithGitSubmoduleModified

Here the problem is in the test itself, we use git -C <path> during test and -C flag do not exist on git 1.7.1.

TestBuildWithBrokenGitSSLCAInfo

git config http.https://example.com/sslVerify has been introduced in git v.1.9.0.

TestBuildWithGitSSLAndStrategyFetch

This is already reported in #2991 (closed) and is fixed in !790 (merged)