diff options
| author | nmeum <[email protected]> | 2020-11-28 20:10:34 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-28 11:10:34 -0800 |
| commit | 1fabe95fb7275df980ff6ab03fb85eac91c5849d (patch) | |
| tree | d57a71746b8488d580dbd98b33beae7fd097b177 /git_system_dynamic.go | |
| parent | 7497529f70862c140bc1c3b89e95919a48a9bf42 (diff) | |
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
Diffstat (limited to 'git_system_dynamic.go')
| -rw-r--r-- | git_system_dynamic.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git_system_dynamic.go b/git_system_dynamic.go index 571a77f..3013804 100644 --- a/git_system_dynamic.go +++ b/git_system_dynamic.go @@ -7,8 +7,8 @@ package git #cgo CFLAGS: -DLIBGIT2_DYNAMIC #include <git2.h> -#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR != 1 -# error "Invalid libgit2 version; this git2go supports libgit2 v1.1" +#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 1 +# error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.1.0" #endif */ import "C" |
