0120-prereq-backport-changes-to-git-detection-to-work-with-newer-Git-versions.patch 986 B

12345678910111213141516171819
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sun, 30 Jul 2017 21:03:05 +0200
  3. Subject: prereq: backport changes to git detection to work with newer Git versions
  4. diff --git a/include/prereq-build.mk b/include/prereq-build.mk
  5. index f36d57ce06c46be7ac33f3034ad08a3ce603089d..dbc273bcfe25f5ed6e24678462c0496e4c27ec31 100644
  6. --- a/include/prereq-build.mk
  7. +++ b/include/prereq-build.mk
  8. @@ -144,8 +144,8 @@ $(eval $(call SetupHostCommand,python,Please install Python 2.x, \
  9. $(eval $(call SetupHostCommand,svn,Please install the Subversion client, \
  10. svn --version | grep Subversion))
  11. -$(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.6.5, \
  12. - git clone 2>&1 | grep -- --recursive))
  13. +$(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \
  14. + git --exec-path | xargs -I % -- grep -q -- --recursive %/git-submodule))
  15. $(eval $(call SetupHostCommand,file,Please install the 'file' package, \
  16. file --version 2>&1 | grep file))