diff options
authorRichard Purdie <>2016-04-05 15:46:21 +0100
committerRichard Purdie <>2016-04-05 15:47:43 +0100
commitdbae075f62ecceadacc6d847e5697b9f3339b168 (patch)
parent773e9ef9bacbf1e63fe758915d599d11762b8c1f (diff)
sanity: Increase minimum git version to
The kernel tools assume git >, I'm unsure of the exact version but the oldest in our infrastructure is The git fetcher also currently has nasty workarounds for git < Moving to as our minimum version seems sane at this point as the oldest we're testing/supporting. [YOCTO #6162] Signed-off-by: Richard Purdie <>
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 662f764533..d229938c93 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -531,14 +531,16 @@ def check_tar_version(sanity_data):
return None
# We use git parameters and functionality only found in 1.7.8 or later
+# The kernel tools assume git >= (verified needed > see #6162
+# The git fetcher also had workarounds for git < which we've dropped
def check_git_version(sanity_data):
from distutils.version import LooseVersion
status, result = oe.utils.getstatusoutput("git --version 2> /dev/null")
if status != 0:
return "Unable to execute git --version, exit code %s\n" % status
version = result.split()[2]
- if LooseVersion(version) < LooseVersion("1.7.8"):
- return "Your version of git is older than 1.7.8 and has bugs which will break builds. Please install a newer version of git.\n"
+ if LooseVersion(version) < LooseVersion(""):
+ return "Your version of git is older than and has bugs which will break builds. Please install a newer version of git.\n"
return None
# Check the required perl modules which may not be installed by default