Skip to content

Commit d294b68

Browse files
Fix init-submodules-release.sh (#765)
* Fix init-submodules-release.sh * default to submodule update in the helper shell script * Fix pre-commit --------- Co-authored-by: Sriteja Kummita <sriteja.ku@gmail.com>
1 parent 9915cae commit d294b68

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

utils/init-submodules-release.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
source ./safeCommandsSet.sh
44

55
if git submodule status 2>&1 | grep -iq "fatal: Not a git repository (or any of the parent directories): .git"; then
6+
67
safe_cd "$(dirname "$0")"/../external/
7-
git clone git@github.com:google/googletest.git
8-
safe_cd googletest/
9-
git checkout release-1.8.0
8+
9+
git clone --no-checkout https://github.com/nlohmann/json.git
10+
safe_cd json/
11+
git checkout v3.11.3
1012
safe_cd -
11-
git clone git@github.com:nlohmann/json.git
13+
14+
git clone --no-checkout https://github.com/pboettch/json-schema-validator.git
1215
safe_cd json/
13-
git checkout v3.4.0
16+
git checkout 2.3.0
1417
safe_cd -
18+
19+
else git submodule update --init;
1520
fi

0 commit comments

Comments
 (0)