Skip to content

Commit 037bac1

Browse files
committed
Update for libgit2 v0.27
1 parent 6628929 commit 037bac1

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.travis.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cd ~
44

5-
git clone --depth=1 -b maint/v0.26 https://github.com/libgit2/libgit2.git
5+
git clone --depth=1 -b maint/v0.27 https://github.com/libgit2/libgit2.git
66
cd libgit2/
77

88
mkdir build && cd build

pygit2/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def add_file(self, path, level=0, force=0):
219219
"""Add a config file instance to an existing config."""
220220

221221
err = C.git_config_add_file_ondisk(self._config, to_bytes(path), level,
222-
force)
222+
ffi.NULL, force)
223223
check_error(err)
224224

225225
def snapshot(self):

pygit2/decl.h

+1
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ int git_config_delete_entry(git_config *cfg, const char *name);
572572
int git_config_add_file_ondisk(git_config *cfg,
573573
const char *path,
574574
git_config_level_t level,
575+
const git_repository *repo,
575576
int force);
576577

577578
int git_config_iterator_new(git_config_iterator **out, const git_config *cfg);

src/types.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
#include <Python.h>
3333
#include <git2.h>
3434

35-
#if !(LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR == 26)
36-
#error You need a compatible libgit2 version (v0.26.x)
35+
#if !(LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR == 27)
36+
#error You need a compatible libgit2 version (v0.27.x)
3737
#endif
3838

3939
/*

0 commit comments

Comments
 (0)