From 971fc2f101efd700bf06cb0484e1e675c510e112 Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Thu, 1 Nov 2012 14:47:42 +0100 Subject: [PATCH] fixed config test for config.set_multivar config files have different priorities and only the highest one gets evaluated for set_multivar --- src/pygit2/index.c | 1 - test/test_config.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pygit2/index.c b/src/pygit2/index.c index a43b6b1..b200b0e 100644 --- a/src/pygit2/index.c +++ b/src/pygit2/index.c @@ -84,7 +84,6 @@ Index_add(Index *self, PyObject *args) { int err; const char *path; - git_index_entry* entry; if (!PyArg_ParseTuple(args, "s", &path)) return NULL; diff --git a/test/test_config.py b/test/test_config.py index b461922..8656436 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -151,7 +151,7 @@ class ConfigTest(utils.RepoTestCase): new_file.write("[this]\n\tthat = foobar\n\tthat = foobeer\n") new_file.close() - config.add_file(config_filename, 0) + config.add_file(config_filename, 5) self.assertTrue('this.that' in config) config.set_multivar('this.that', '^.*beer', 'fool') l = config.get_multivar('this.that', 'fool')