diff --git a/doorstop/core/vcs/base.py b/doorstop/core/vcs/base.py index ed553bfdc..ac67ca6d2 100644 --- a/doorstop/core/vcs/base.py +++ b/doorstop/core/vcs/base.py @@ -78,7 +78,7 @@ def ignores(self): for line in common.read_lines(path): pattern = line.strip(" @\\/*\n") if pattern and not pattern.startswith("#"): - self._ignores_cache.append("*" + pattern + "*") + self._ignores_cache.append(pattern + "*") yield from self._ignores_cache @property diff --git a/doorstop/core/vcs/tests/test_all.py b/doorstop/core/vcs/tests/test_all.py index 16a05e381..450f4d915 100644 --- a/doorstop/core/vcs/tests/test_all.py +++ b/doorstop/core/vcs/tests/test_all.py @@ -20,5 +20,5 @@ def test_ignores(self): patterns = list(self.wc.ignores) for pattern in patterns: print(pattern) - self.assertIn("*__pycache__*", patterns) - self.assertIn("*build*", patterns) + self.assertIn("__pycache__*", patterns) + self.assertIn("build*", patterns)