提交 ace020c5 编写于 作者: M Megvii Engine Team

fix(git): make git version check work

GitOrigin-RevId: 5f38118f4e249793bcdc1d8c8ad4b13705db45ac
上级 780fe022
......@@ -4,6 +4,13 @@ cd $(dirname $0)
source ../ci/utils.sh
requiredGitVersion="1.8.4"
currentGitVersion="$(git --version | awk '{print $3}')"
if [ "$(printf '%s\n' "$requiredGitVersion" "$currentGitVersion" | sort -V | head -n1)" = "$currentGitVersion" ]; then
echo "Please update your Git version. (foud version $currentGitVersion, required version >= $requiredGitVersion)"
exit -1
fi
log "Start downloading git submodules"
git submodule sync
git submodule update -f --init midout
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册