diff options
author | Vicent Marti <vicent@github.com> | 2014-04-19 13:05:32 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-04-19 13:05:32 +0200 |
commit | 7b0f8ba9a8d714de3d4432c9b5902f3a8d8889d7 (patch) | |
tree | f9a21fca19b8f024810f3278a8c99b18b715d403 /src/pathspec.c | |
parent | 386777fd0dd7665a0aad65bf3589d7bf71024c0e (diff) | |
parent | ac16bd0a94e1f7254112c7585b843bdc2d0659c1 (diff) | |
download | libgit2-7b0f8ba9a8d714de3d4432c9b5902f3a8d8889d7.tar.gz |
Merge pull request #2279 from libgit2/rb/moar-eegnöre-fîxés
Fix several ignore and attribute file behavior bugs
Diffstat (limited to 'src/pathspec.c')
-rw-r--r-- | src/pathspec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pathspec.c b/src/pathspec.c index 09650de7c..a01d74f07 100644 --- a/src/pathspec.c +++ b/src/pathspec.c @@ -83,7 +83,8 @@ int git_pathspec__vinit( if (!match) return -1; - match->flags = GIT_ATTR_FNMATCH_ALLOWSPACE | GIT_ATTR_FNMATCH_ALLOWNEG; + match->flags = GIT_ATTR_FNMATCH_ALLOWSPACE | + GIT_ATTR_FNMATCH_ALLOWNEG | GIT_ATTR_FNMATCH_NOLEADINGDIR; ret = git_attr_fnmatch__parse(match, strpool, NULL, &pattern); if (ret == GIT_ENOTFOUND) { |