From a5560b09f230da650a327e080e615e4c34464300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 29 Nov 2020 13:27:05 +0100 Subject: [PATCH] fixup! Relax libgit2 minor version check (#696) --- git_bundled_static.go | 4 ++-- git_system_dynamic.go | 4 ++-- git_system_static.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/git_bundled_static.go b/git_bundled_static.go index 8f0bb9d..8076dbe 100644 --- a/git_bundled_static.go +++ b/git_bundled_static.go @@ -9,8 +9,8 @@ package git #cgo CFLAGS: -DLIBGIT2_STATIC #include -#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 -# error "Invalid libgit2 version; this git2go supports libgit2 >= v1.0" +#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 1 +# error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.1.0". #endif */ import "C" diff --git a/git_system_dynamic.go b/git_system_dynamic.go index 2fedddb..495fbf5 100644 --- a/git_system_dynamic.go +++ b/git_system_dynamic.go @@ -7,8 +7,8 @@ package git #cgo CFLAGS: -DLIBGIT2_DYNAMIC #include -#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 -# error "Invalid libgit2 version; this git2go supports libgit2 >= v1.0" +#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 1 +# error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.1.0". #endif */ import "C" diff --git a/git_system_static.go b/git_system_static.go index 008060a..b016689 100644 --- a/git_system_static.go +++ b/git_system_static.go @@ -7,8 +7,8 @@ package git #cgo CFLAGS: -DLIBGIT2_STATIC #include -#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 -# error "Invalid libgit2 version; this git2go supports libgit2 >= v1.0" +#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 1 +# error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.1.0". #endif */ import "C"