-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libgit2-glib: patch to build with libgit2 0.27, rebuild
Patch based on upstream merge request #2. https://gitlab.gnome.org/GNOME/libgit2-glib/merge_requests/2
- Loading branch information
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From f6d7a149b40a7b131852f4daf8b428bbc993b12e Mon Sep 17 00:00:00 2001 | ||
From: Steve Langasek <steve.langasek@ubuntu.com> | ||
Date: Sun, 8 Jul 2018 12:51:22 +0100 | ||
Subject: [PATCH] Compatibility with libgit2 0.27 | ||
|
||
git_config_add_file_ondisk() now takes an additional (optional) 'repo' | ||
argument. Fix the build failure. | ||
|
||
[smcv: Make the API change conditional on LIBGIT2_SOVERSION so we can | ||
build against either version] | ||
|
||
Fixes: #1 | ||
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903146 | ||
Signed-off-by: Simon McVittie <smcv@debian.org> | ||
--- | ||
libgit2-glib/ggit-config.c | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/libgit2-glib/ggit-config.c b/libgit2-glib/ggit-config.c | ||
index b6536ce..acdad95 100644 | ||
--- libgit2-glib/ggit-config.c | ||
+++ libgit2-glib/ggit-config.c | ||
@@ -295,6 +295,9 @@ ggit_config_add_file (GgitConfig *config, | ||
ret = git_config_add_file_ondisk (_ggit_native_get (config), | ||
path, | ||
(git_config_level_t)level, | ||
+#if LIBGIT2_SOVERSION >= 27 | ||
+ NULL, | ||
+#endif | ||
force); | ||
g_free (path); | ||
|
||
-- | ||
2.17.1 |