base-files: remove ununsed login.sh
[openwrt/svn-archive/archive.git] / include / prereq-build.mk
index 443b17399de7ec85e1eb84695e4a41a634e811aa..a53065576cc9c15295fb3e12d541053d45907ac2 100644 (file)
@@ -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 --help 2>&1 | grep -q -- --recursive))
+       git --exec-path | xargs -I % -- grep -q -- --recursive %/git-submodule))
 
 $(eval $(call SetupHostCommand,file,Please install the 'file' package, \
        file --version 2>&1 | grep file))