diff options
Diffstat (limited to 'poetry_restrict_plugin/plugin.py')
| -rw-r--r-- | poetry_restrict_plugin/plugin.py | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/poetry_restrict_plugin/plugin.py b/poetry_restrict_plugin/plugin.py index 632f5bf..008dccf 100644 --- a/poetry_restrict_plugin/plugin.py +++ b/poetry_restrict_plugin/plugin.py @@ -86,7 +86,12 @@ class RestrictPlugin(Plugin):          if os.path.exists(pre_commit_cache):              ruleset.allow(pre_commit_cache)              ruleset.allow( -                *existing_paths((".gitconfig", os.path.expanduser("~/.config/git/config"))), +                *existing_paths( +                    ( +                        os.path.expanduser("~/.gitconfig"), +                        os.path.expanduser("~/.config/git/config") +                    ) +                ),                  rules=FSAccess.READ_FILE,              ) | 
