aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-03-05 10:49:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-03-05 10:49:59 +0000
commit887e39150f17463efe6a58cb3e8f2b0bb28ef805 (patch)
tree3bfcb5099693e652e6c90d8a21dd59ecdff4235d /include
parent3f971c0dc86c820628f32fae5dd328950cd0629f (diff)
downloadupstream-887e39150f17463efe6a58cb3e8f2b0bb28ef805.tar.gz
upstream-887e39150f17463efe6a58cb3e8f2b0bb28ef805.tar.bz2
upstream-887e39150f17463efe6a58cb3e8f2b0bb28ef805.zip
build: fix git prereq check to not rely on being in a git directory (#21968)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48926
Diffstat (limited to 'include')
-rw-r--r--include/prereq-build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index 23a5b932ed..443b17399d 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -155,7 +155,7 @@ $(eval $(call SetupHostCommand,svn,Please install the Subversion client, \
svn --version | grep Subversion))
$(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \
- git submodule update --help 2>&1 | grep -- --recursive))
+ git submodule --help 2>&1 | grep -q -- --recursive))
$(eval $(call SetupHostCommand,file,Please install the 'file' package, \
file --version 2>&1 | grep file))