summaryrefslogtreecommitdiff
path: root/src/ignore.c
diff options
context:
space:
mode:
authorThe rugged tests are fragile <tanoku@gmail.com>2014-09-17 14:52:31 +0200
committerThe rugged tests are fragile <tanoku@gmail.com>2014-09-17 15:00:12 +0200
commitbbb988a5190be2a8763c60cb37c52466a39f6441 (patch)
tree691ad5fcfc3097bf2d593d280fa64f808b27dbf5 /src/ignore.c
parent1312f87b6838649cca525935656c84c7bd07a9a1 (diff)
downloadlibgit2-bbb988a5190be2a8763c60cb37c52466a39f6441.tar.gz
path: Fix `git_path_walk_up` to work with non-rooted paths
Diffstat (limited to 'src/ignore.c')
-rw-r--r--src/ignore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ignore.c b/src/ignore.c
index 78f01ac44..520bcfe41 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -91,11 +91,11 @@ static int push_ignore_file(
return error;
}
-static int push_one_ignore(void *payload, git_buf *path)
+static int push_one_ignore(void *payload, const char *path)
{
git_ignores *ign = payload;
ign->depth++;
- return push_ignore_file(ign, &ign->ign_path, path->ptr, GIT_IGNORE_FILE);
+ return push_ignore_file(ign, &ign->ign_path, path, GIT_IGNORE_FILE);
}
static int get_internal_ignores(git_attr_file **out, git_repository *repo)