summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-03-07 11:20:04 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-07 08:51:20 -0800
commit80341062195b27ea2f6d16ef22225b439ac84165 (patch)
tree8f64bdc5bbe3cda2a04a7f7ad83fe21198def8cc /save-git.c
parent211ff0e63b604e06a7ae98bf0693715bbf426e64 (diff)
downloadsubsurface-80341062195b27ea2f6d16ef22225b439ac84165.tar.gz
Fix compilation with libgit2 0.20
Linus was wrong - the change to the API happened after 0.20 was released. So libgit2 0.20 still needs the fix. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-git.c b/save-git.c
index 6e0d989c0..5ffd06885 100644
--- a/save-git.c
+++ b/save-git.c
@@ -530,7 +530,7 @@ 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
* message log arguments.
*/
-#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR <= 19
+#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR <= 20
#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) \