mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 20:26:17 +00:00
Fix Ubuntu compilation error.
Ubuntu has git minor version 20 which has less parameters in git-remote-fetch. From ac9516984e4fbc787635b0dfd76649c8e43fab83 Mon Sep 17 00:00:00 2001 From: Patrick Valsecchi <patrick@thus.ch> Date: Tue, 24 Feb 2015 08:45:21 +0100 Subject: [PATCH 2/2] Fix Ubuntu compilation error. Ubuntu has git minor version 20 which has less parameters in git-remote-fetch. Signed-off-by: Patrick Valsecchi <patrick@thus.ch> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e64501574b
commit
1c55f47662
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@
|
||||||
*/
|
*/
|
||||||
#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR < 22
|
#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR < 22
|
||||||
#define git_remote_lookup(res, repo, name) git_remote_load(res, repo, name)
|
#define git_remote_lookup(res, repo, name) git_remote_load(res, repo, name)
|
||||||
#define git_remote_fetch(remote, refspecs, signature, reflog) git_remote_fetch(remote, signature, reflog)
|
#if LIBGIT2_VER_MINOR <= 20
|
||||||
|
#define git_remote_fetch(remote, refspecs, signature, reflog) git_remote_fetch(remote)
|
||||||
|
#else
|
||||||
|
#define git_remote_fetch(remote, refspecs, signature, reflog) git_remote_fetch(remote, signature, reflog)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static char *get_local_dir(const char *remote, const char *branch)
|
static char *get_local_dir(const char *remote, const char *branch)
|
||||||
|
|
Loading…
Add table
Reference in a new issue