Commit 6a2edc5a11471f8503888887ca6d4d0f24b1f995

Edward Thomson 2015-03-06T15:16:40

filter: accept relative paths in apply_to_file

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/filter.c b/src/filter.c
index 628a7ea..6d0d480 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;
 	}