diff options
author | 2024-07-30 19:24:49 +0200 | |
---|---|---|
committer | 2024-07-30 19:24:49 +0200 | |
commit | 5190f41f14ee1232a62ef0bfda4dd3f48668c28c (patch) | |
tree | 9ab19b066d0ac3f4d4e8fb37c3f8689eda31d692 | |
parent | Begin Alpha 5 development (diff) |
Fix path to HOME gitconfig
-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, ) |