Skip to content

Commit

Permalink
fix debug
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Dec 28, 2023
1 parent 55caaf6 commit 55e46a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dotdrop/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ def _match_ignore_pattern(path, pattern, debug=False):
msg = f'fnmatch \"{subpath}\" against {pattern}'
LOG.dbg(msg, force=True)
ret = fnmatch.fnmatch(subpath, pattern)
if debug:
LOG.dbg(f'ignore \"{pattern}\" match: {subpath}',
force=True)
if ret:
if debug:
LOG.dbg(f'ignore \"{pattern}\" match: {subpath}',
force=True)
return ret
subpath = os.path.dirname(subpath)
return False
Expand Down

0 comments on commit 55e46a8

Please sign in to comment.