Skip to content

Commit 67dce7d

Browse files
committed
Fix git2 1.8 compile error.
1 parent ee83986 commit 67dce7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/commit.nobj.lua

+4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ typedef git_commit Commit;
4040
var_out{"GitError", "err"},
4141
c_source "pre" [[
4242
int parent_count = 0;
43+
#if LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 8
44+
git_commit **parents;
45+
#else
4346
const git_commit **parents;
47+
#endif
4448
int n;
4549
]],
4650
c_source[[

0 commit comments

Comments
 (0)