diff options
author | Vicent Marti <vicent@github.com> | 2014-04-18 12:33:19 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-04-18 12:33:19 +0200 |
commit | 28fd7206b1359b6564bad3c66382b47a8f2e3eb1 (patch) | |
tree | e0d9204bdfea2a948d94b2b14d382a697b00b6db /src/pathspec.c | |
parent | 2bed3553f4595a42d9a6884edc66b991e21f881e (diff) | |
parent | 8303827226db114a1157e6173e731f316c217851 (diff) | |
download | libgit2-28fd7206b1359b6564bad3c66382b47a8f2e3eb1.tar.gz |
Merge pull request #2108 from libgit2/rb/threadsafe-index-iterator
Make index iterator thread safe
Diffstat (limited to 'src/pathspec.c')
-rw-r--r-- | src/pathspec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathspec.c b/src/pathspec.c index 471488495..09650de7c 100644 --- a/src/pathspec.c +++ b/src/pathspec.c @@ -445,7 +445,7 @@ static int pathspec_match_from_iterator( /* check if path is ignored and untracked */ if (index != NULL && git_iterator_current_is_ignored(iter) && - git_index__find(NULL, index, entry->path, 0, GIT_INDEX_STAGE_ANY) < 0) + git_index__find_pos(NULL, index, entry->path, 0, GIT_INDEX_STAGE_ANY) < 0) continue; /* mark the matched pattern as used */ |