summaryrefslogtreecommitdiff
path: root/src/filter.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-03-06 15:16:40 -0500
committerEdward Thomson <ethomson@microsoft.com>2015-03-06 15:16:40 -0500
commit6a2edc5a11471f8503888887ca6d4d0f24b1f995 (patch)
treee4ef1f9310ab82d2feb9a4cc168422fdf7d78bb7 /src/filter.c
parent0b3dd8fbed1ed2a15e633a37c158033ae7a639a2 (diff)
downloadlibgit2-6a2edc5a11471f8503888887ca6d4d0f24b1f995.tar.gz
filter: accept relative paths in apply_to_file
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filter.c b/src/filter.c
index 628a7ea8a..6d0d48015 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -893,7 +893,7 @@ int git_filter_list_stream_file(
(error = git_path_join_unrooted(&abspath, path, base, NULL)) < 0)
goto done;
- if ((fd = git_futils_open_ro(path)) < 0) {
+ if ((fd = git_futils_open_ro(abspath.ptr)) < 0) {
error = fd;
goto done;
}