Suggest git submodule update instead of delete + reclone (#3214)

This commit is contained in:
Clive Chan 2018-05-09 17:39:17 -04:00 committed by Philip Hyunsu Cho
parent 747381b520
commit 0c0a78c255

View File

@ -15,25 +15,21 @@ else
if [[ ! -e ./rabit/Makefile ]]; then if [[ ! -e ./rabit/Makefile ]]; then
echo "" echo ""
echo "Please clone the rabit repository into this directory." echo "Please init the rabit submodule:"
echo "Here are the commands:" echo "git submodule update --init --recursive -- rabit"
echo "rm -rf rabit"
echo "git clone https://github.com/dmlc/rabit.git rabit"
not_ready=1 not_ready=1
fi fi
if [[ ! -e ./dmlc-core/Makefile ]]; then if [[ ! -e ./dmlc-core/Makefile ]]; then
echo "" echo ""
echo "Please clone the dmlc-core repository into this directory." echo "Please init the dmlc-core submodule:"
echo "Here are the commands:" echo "git submodule update --init --recursive -- dmlc-core"
echo "rm -rf dmlc-core"
echo "git clone https://github.com/dmlc/dmlc-core.git dmlc-core"
not_ready=1 not_ready=1
fi fi
if [[ "${not_ready}" == "1" ]]; then if [[ "${not_ready}" == "1" ]]; then
echo "" echo ""
echo "Please fix the errors above and retry the build or reclone the repository with:" echo "Please fix the errors above and retry the build, or reclone the repository with:"
echo "git clone --recursive https://github.com/dmlc/xgboost.git" echo "git clone --recursive https://github.com/dmlc/xgboost.git"
echo "" echo ""
exit 1 exit 1