diff options
| author | The rugged tests are fragile <tanoku@gmail.com> | 2014-09-17 14:52:31 +0200 |
|---|---|---|
| committer | The rugged tests are fragile <tanoku@gmail.com> | 2014-09-17 15:00:12 +0200 |
| commit | bbb988a5190be2a8763c60cb37c52466a39f6441 (patch) | |
| tree | 691ad5fcfc3097bf2d593d280fa64f808b27dbf5 /src/attr.c | |
| parent | 1312f87b6838649cca525935656c84c7bd07a9a1 (diff) | |
| download | libgit2-bbb988a5190be2a8763c60cb37c52466a39f6441.tar.gz | |
path: Fix `git_path_walk_up` to work with non-rooted paths
Diffstat (limited to 'src/attr.c')
| -rw-r--r-- | src/attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attr.c b/src/attr.c index dee84b0ab..fd0ab9274 100644 --- a/src/attr.c +++ b/src/attr.c @@ -377,7 +377,7 @@ static int push_attr_file( return error; } -static int push_one_attr(void *ref, git_buf *path) +static int push_one_attr(void *ref, const char *path) { int error = 0, n_src, i; attr_walk_up_info *info = (attr_walk_up_info *)ref; @@ -388,7 +388,7 @@ static int push_one_attr(void *ref, git_buf *path) for (i = 0; !error && i < n_src; ++i) error = push_attr_file( - info->repo, info->files, src[i], path->ptr, GIT_ATTR_FILE); + info->repo, info->files, src[i], path, GIT_ATTR_FILE); return error; } |
