From 1fabe95fb7275df980ff6ab03fb85eac91c5849d Mon Sep 17 00:00:00 2001 From: nmeum Date: Sat, 28 Nov 2020 20:10:34 +0100 Subject: Relax libgit2 minor version check (#696) The major version must still be an exact match since libgit2 uses semantic versioning and changes to the major number indicate backwards incompatible changes to the API. Fixes: #695 --- script/build-libgit2.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'script/build-libgit2.sh') diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh index dd11314..9df8c3c 100755 --- a/script/build-libgit2.sh +++ b/script/build-libgit2.sh @@ -46,6 +46,11 @@ if [ -z "${BUILD_SHARED_LIBS}" ]; then usage fi +if [ -n "${BUILD_LIBGIT_REF}" ]; then + git -C "${VENDORED_PATH}" checkout "${BUILD_LIBGIT_REF}" + trap "git submodule update --init" EXIT +fi + if [ "${BUILD_SYSTEM}" = "ON" ]; then BUILD_INSTALL_PREFIX=${SYSTEM_INSTALL_PREFIX-"/usr"} else -- cgit v1.2.3