diff options
Diffstat (limited to 'lib/gall/ll/git2.c')
-rw-r--r-- | lib/gall/ll/git2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gall/ll/git2.c b/lib/gall/ll/git2.c index 8fee1dc..7aca7fa 100644 --- a/lib/gall/ll/git2.c +++ b/lib/gall/ll/git2.c @@ -220,7 +220,11 @@ static int L_set_symbolic_ref(lua_State *L) if ((ret = git_reference_symbolic_create(&ref, repo, luaL_checkstring(L, 2), luaL_checkstring(L, 3), - 1, NULL, NULL)) != 0) { + 1, NULL +#if LIBGIT2_VER_MINOR < 23 + , NULL +#endif + )) != 0) { return push_git2_error(L, ret); } git_reference_free(ref); |