File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 18
18
19
19
nvm install --no-progress $NODE_JS_VERSION
20
20
nvm alias default $NODE_JS_VERSION
21
+
22
+ if env PATH="/opt/chefdk/gitbin:$PATH" git --version | grep -q 'git version 1.'; then
23
+ (cd "$BASEDIR" &&
24
+ curl -sSfL https://github.com/git/git/archive/refs/tags/v2.31.1.tar.gz | tar -xvz &&
25
+ mv git-2.31.1 git-2 &&
26
+ cd git-2 &&
27
+ make -j8 NO_EXPAT=1)
28
+ fi
21
29
fi
22
30
23
31
. "$BASEDIR/.setup_env"
Original file line number Diff line number Diff line change 1
1
set -e
2
2
set -x
3
3
export BASEDIR="$PWD/.evergreen"
4
- export PATH="$BASEDIR/node-v$NODE_JS_VERSION-win-x64:/opt/python/3.6/bin:/opt/chefdk/gitbin:/cygdrive/c/Program Files/Git/bin:/cygdrive/c/Program Files/Git/mingw32/libexec/git-core:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/cmake/bin:/opt/mongodbtoolchain/v3/bin:$PATH"
4
+ export PATH="$BASEDIR/git-2:$BASEDIR/ node-v$NODE_JS_VERSION-win-x64:/opt/python/3.6/bin:/opt/chefdk/gitbin:/cygdrive/c/Program Files/Git/bin:/cygdrive/c/Program Files/Git/mingw32/libexec/git-core:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/cmake/bin:/opt/mongodbtoolchain/v3/bin:$PATH"
5
5
export IS_MONGOSH_EVERGREEN_CI=1
6
6
7
7
if [ "$OS" != "Windows_NT" ]; then
@@ -22,6 +22,10 @@ if [ "$OS" != "Windows_NT" ]; then
22
22
23
23
echo "Using g++ version:"
24
24
g++ --version
25
+
26
+ if [ -x "$BASEDIR/git-2/git" ]; then
27
+ export GIT_EXEC_PATH="$BASEDIR/git-2"
28
+ fi
25
29
fi
26
30
27
31
export EVERGREEN_EXPANSIONS_PATH="$BASEDIR/../../tmp/expansions.yaml"
You can’t perform that action at this time.
0 commit comments