diff options
author | Vicent Marti <tanoku@gmail.com> | 2014-01-29 18:17:08 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2014-01-29 13:15:51 -0800 |
commit | 53bec813a81cb0e1e970df69281ab4a3e6c2a47c (patch) | |
tree | f9a057c5aba49b0a81219771a3cf6183e8358846 /src/pathspec.c | |
parent | 95fbedcd8eaaff2747196e20abd959596baf7e98 (diff) | |
download | libgit2-53bec813a81cb0e1e970df69281ab4a3e6c2a47c.tar.gz |
index: Compare with given len
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 d6ce09c02..bee320576 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, GIT_INDEX_STAGE_ANY) < 0) + git_index__find(NULL, index, entry->path, strlen(entry->path), GIT_INDEX_STAGE_ANY) < 0) continue; /* mark the matched pattern as used */ |