summaryrefslogtreecommitdiff
path: root/src/pathspec.c
diff options
context:
space:
mode:
authorArthur Schreiber <schreiber.arthur@googlemail.com>2016-02-11 23:37:52 +0100
committerArthur Schreiber <schreiber.arthur@googlemail.com>2016-02-11 23:41:34 +0100
commit3679ebaef5436a662ad74819f6cbd2c1e76e6766 (patch)
treefac507cf5de7ba022c71c22186236f6e033ed1e8 /src/pathspec.c
parent460ae11f0a8178c5d5abc55574dc3e0e312a47ea (diff)
downloadlibgit2-3679ebaef5436a662ad74819f6cbd2c1e76e6766.tar.gz
Horrible fix for #3173.
Diffstat (limited to 'src/pathspec.c')
-rw-r--r--src/pathspec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pathspec.c b/src/pathspec.c
index 5bb69ec4b..8a93cdd50 100644
--- a/src/pathspec.c
+++ b/src/pathspec.c
@@ -550,7 +550,7 @@ int git_pathspec_match_index(
iter_opts.flags = pathspec_match_iter_flags(flags);
- if (!(error = git_iterator_for_index(&iter, index, &iter_opts))) {
+ if (!(error = git_iterator_for_index(&iter, git_index_owner(index), index, &iter_opts))) {
error = pathspec_match_from_iterator(out, iter, flags, ps);
git_iterator_free(iter);
}
@@ -718,4 +718,3 @@ const char * git_pathspec_match_list_failed_entry(
return entry ? *entry : NULL;
}
-