summaryrefslogtreecommitdiff
path: root/src/pathspec.c
diff options
context:
space:
mode:
authoryorah <yoram.harmelin@gmail.com>2013-04-11 17:29:05 +0200
committeryorah <yoram.harmelin@gmail.com>2013-04-15 16:39:56 +0200
commit2e40a60e847d6c128af23e24ea7a8efebd2427da (patch)
tree398dabc6825bc63f578d39069a7a097f705bbf15 /src/pathspec.c
parent2d2260da41ddf22fd5c5f0c39ce16fad1548f29e (diff)
downloadlibgit2-2e40a60e847d6c128af23e24ea7a8efebd2427da.tar.gz
status: fix handling of filenames with special prefixes
Fix libgit2/libgit2sharp#379
Diffstat (limited to 'src/pathspec.c')
-rw-r--r--src/pathspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathspec.c b/src/pathspec.c
index d4eb12582..9dee55ea1 100644
--- a/src/pathspec.c
+++ b/src/pathspec.c
@@ -78,7 +78,7 @@ int git_pathspec_init(
match->flags = GIT_ATTR_FNMATCH_ALLOWSPACE;
- ret = git_attr_fnmatch__parse(match, strpool, NULL, &pattern);
+ ret = git_attr_fnmatch__parse_shellglob_format(match, strpool, NULL, &pattern);
if (ret == GIT_ENOTFOUND) {
git__free(match);
continue;