From 6ab6705f8c3a958ae5de159d609b0c2ef5550dae Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 20 Jun 2023 14:06:12 -0400 Subject: Removed system configuration search paths. --- src/lpm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lpm.c') diff --git a/src/lpm.c b/src/lpm.c index 8c19209..1f11127 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -324,6 +324,9 @@ static void git_init() { git_libgit2_init(); if (git_cert_type) git_libgit2_opts(GIT_OPT_SET_SSL_CERT_LOCATIONS, git_cert_type == 2 ? git_cert_path : NULL, git_cert_type == 1 ? git_cert_path : NULL); + git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, GIT_CONFIG_LEVEL_SYSTEM, "."); + git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, GIT_CONFIG_LEVEL_GLOBAL, "."); + git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, GIT_CONFIG_LEVEL_XDG, "."); git_initialized = 1; } } -- cgit v1.2.3