Skip to content

Commit 760a196

Browse files
committed
Update for libgit2 v0.27
1 parent 6628929 commit 760a196

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.travis.sh

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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);

0 commit comments

Comments
 (0)