From d49a29719ad42c2126b89083c462e63e834fdf5b Mon Sep 17 00:00:00 2001 From: stoneMo <59949790+stoneMo@users.noreply.github.com> Date: Tue, 4 Aug 2020 23:48:38 +0800 Subject: [PATCH] Update prepare.sh --- third_party/prepare.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/third_party/prepare.sh b/third_party/prepare.sh index ef89b8dab..4e95e936e 100755 --- a/third_party/prepare.sh +++ b/third_party/prepare.sh @@ -1,5 +1,13 @@ #!/bin/bash -e +git_version=$(git --version) +if [ >= "1.8.4" ]; then + echo "Since git 1.8.4 (August 2013), you don't have to be at top-level to run git submodule update." +else + echo "You have to update your git version to 1.8.4 or later." + exit -1 +fi + cd $(dirname $0) git submodule sync -- GitLab