From 5190f41f14ee1232a62ef0bfda4dd3f48668c28c Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Tue, 30 Jul 2024 19:24:49 +0200 Subject: Fix path to HOME gitconfig --- poetry_restrict_plugin/plugin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, ) -- cgit v1.2.3