From 5272bd899bd09d344f08880d5aee5ecf106a6dff Mon Sep 17 00:00:00 2001 From: Edmund Huber Date: Sun, 19 Mar 2017 23:11:13 -0700 Subject: [PATCH] build: Check for .git, but it doesn't have to be a directory, so that esp-idf will work as a submodule Merges #438 https://github.com/espressif/esp-idf/pull/438 --- make/project.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/project.mk b/make/project.mk index f5ae796f05..9980e58009 100644 --- a/make/project.mk +++ b/make/project.mk @@ -409,7 +409,7 @@ define GenerateSubmoduleCheckTarget check-submodules: $(IDF_PATH)/$(1)/.git $(IDF_PATH)/$(1)/.git: @echo "WARNING: Missing submodule $(1)..." - [ -d ${IDF_PATH}/.git ] || ( echo "ERROR: esp-idf must be cloned from git to work."; exit 1) + [ -e ${IDF_PATH}/.git ] || ( echo "ERROR: esp-idf must be cloned from git to work."; exit 1) [ -x $(which git) ] || ( echo "ERROR: Need to run 'git submodule init $(1)' in esp-idf root directory."; exit 1) @echo "Attempting 'git submodule update --init $(1)' in esp-idf root directory..." cd ${IDF_PATH} && git submodule update --init $(1) -- 2.40.0