Skip to content

Commit

Permalink
Fix unique tracking with case sensitive vs insensitive (#165)
Browse files Browse the repository at this point in the history
Fixes #164
  • Loading branch information
facelessuser authored Feb 10, 2021
1 parent 2737567 commit 0922532
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/src/markdown/about/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 8.1.1

- **FIX**: When tracking unique glob paths, the unique cache had inverted logic for case sensitive vs case insensitive
comparison. (#164)

## 8.1

- **NEW**: Add `is_magic` function to the `glob` and `fnamtch` library.
Expand Down
2 changes: 1 addition & 1 deletion wcmatch/__meta__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,5 +189,5 @@ def parse_version(ver):
return Version(major, minor, micro, release, pre, post, dev)


__version_info__ = Version(8, 1, 0, "final")
__version_info__ = Version(8, 1, 1, ".dev")
__version__ = __version_info__._get_canonical()
2 changes: 1 addition & 1 deletion wcmatch/glob.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def is_unique(self, path):
return True

unique = False
if (path.lower() if self.case_sensitive else path) not in self.seen:
if (path.lower() if not self.case_sensitive else path) not in self.seen:
self.seen.add(path)
unique = True
return unique
Expand Down

0 comments on commit 0922532

Please sign in to comment.