From 7de2243cd3835116775b71a8828d5d772cf3f41f Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne - seluj78)" Date: Thu, 15 Oct 2020 10:31:48 +0200 Subject: [PATCH] Fixed potodoignre matching --- .potodoignore | 2 +- potodo/potodo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.potodoignore b/.potodoignore index eba74f4..f7275bb 100644 --- a/.potodoignore +++ b/.potodoignore @@ -1 +1 @@ -venv/ \ No newline at end of file +venv/ diff --git a/potodo/potodo.py b/potodo/potodo.py index 1dd2616..bfc25b6 100644 --- a/potodo/potodo.py +++ b/potodo/potodo.py @@ -122,7 +122,7 @@ def exec_potodo( } try: - ignore_matches = parse_gitignore(path / ".potodoignore") + ignore_matches = parse_gitignore(".potodoignore", base_dir=path) except FileNotFoundError: ignore_matches = parse_gitignore("/dev/null")