Skip to content
Snippets Groups Projects
Commit 3b42dbc1 authored by Jani Nikula's avatar Jani Nikula
Browse files

dim: add a minimum git version check


There have been issues with git 2.7 in the past. Require 2.8 or later
for starters.

Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 56903504
No related branches found
No related tags found
No related merge requests found
......@@ -364,6 +364,15 @@ function git_committer_email
echo $committer_email
}
function git_version_check
{
local min_version="git version 2.8"
if ! echo -e "$min_version\n$(git version)" | sort -VC; then
echoerr "WARNING: recommended minimum $min_version, you have $(git version)"
fi
}
# get message id from file
# $1 = file
message_get_id ()
......@@ -2210,6 +2219,7 @@ function dim_usage
# occasional check for dim updates
check_for_updates
git_version_check
#
# Command line options.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment