Skip to content

Commit

Permalink
Merge pull request cpburnz#3 from highb/fix/master/trailing-slash
Browse files Browse the repository at this point in the history
Trailing slash should catch directories
  • Loading branch information
cpburnz committed Jul 30, 2014
2 parents 6ee8b22 + 9cb14f1 commit e0a65be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pathspec/gitignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(self, pattern):
elif i == end:
# A normalized pattern ending with double-asterisks ('**')
# will match any trailing path segments.
regex.append('/.+')
regex.append('/.*')
else:
# A pattern with inner double-asterisks ('**') will match
# multiple (or zero) inner path segments.
Expand Down

0 comments on commit e0a65be

Please sign in to comment.