mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
211ff0e63b
commit
8034106219
1 changed files with 1 additions and 1 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Reference in a new issue