From 50564a60ce57820851a7c05ee26c93bf5cfd2a96 Mon Sep 17 00:00:00 2001 From: Vladimir Bashkirtsev Date: Wed, 25 Nov 2020 12:10:49 +1030 Subject: [PATCH] do_cmake.sh: do not perform 'git submodule update' if building from tarball Signed-off-by: Vladimir Bashkirtsev --- do_cmake.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/do_cmake.sh b/do_cmake.sh index 345986d630c..4cb07c106b6 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash set -ex -git submodule update --init --recursive +if [ -d .git ]; then + git submodule update --init --recursive +fi : ${BUILD_DIR:=build} : ${CEPH_GIT_DIR:=..}