diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-03-07 09:23:42 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-07 09:23:42 -0800 |
commit | 3b1624ec69ff8cc7332d080e89e71e7e9462c76e (patch) | |
tree | 8faa22aee886d467095f23cc41409914c94a3ea7 /save-git.c | |
parent | 00c97e710f0090b3a2a8d5fe5b92e5ac0207a4b9 (diff) | |
download | subsurface-3b1624ec69ff8cc7332d080e89e71e7e9462c76e.tar.gz |
Add a workaround for using post 0.20 git versions of libgit2
Add the following to your qmake command line and things should compile
again:
qmake ... CONFIG+=libgit21-api
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r-- | save-git.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/save-git.c b/save-git.c index 5ffd06885..619e08630 100644 --- a/save-git.c +++ b/save-git.c @@ -527,10 +527,10 @@ static int create_git_tree(git_repository *repo, struct dir *tree, bool select_o } /* - * libgit2 revision 0.19 and earlier do not have the signature and + * libgit2 revision 0.20 and earlier do not have the signature and * message log arguments. */ -#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR <= 20 +#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR <= 20 && !defined(USE_LIBGIT21_API) #define git_branch_create(out,repo,branch_name,target,force,sig,msg) \ git_branch_create(out,repo,branch_name,target,force) #define git_reference_set_target(out,ref,target,signature,log_message) \ |