aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2024-07-30 19:24:49 +0200
committerGravatar Johannes Christ <[email protected]>2024-07-30 19:24:49 +0200
commit5190f41f14ee1232a62ef0bfda4dd3f48668c28c (patch)
tree9ab19b066d0ac3f4d4e8fb37c3f8689eda31d692
parentBegin Alpha 5 development (diff)
Fix path to HOME gitconfig
-rw-r--r--poetry_restrict_plugin/plugin.py7
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,
)