diff options
author | Adam <adamdharrison@gmail.com> | 2023-06-20 14:34:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 14:34:32 -0400 |
commit | dcb46d8e39b673b11cd6b225103291fc03003343 (patch) | |
tree | 68326bd055d70ddb7ea900c30e255aa44bccf8af /src | |
parent | 0109b96e682f6a50ab8d12931ff9f27dedb0e4d2 (diff) | |
parent | 6ab6705f8c3a958ae5de159d609b0c2ef5550dae (diff) | |
download | lite-xl-plugin-manager-dcb46d8e39b673b11cd6b225103291fc03003343.tar.gz lite-xl-plugin-manager-dcb46d8e39b673b11cd6b225103291fc03003343.zip |
Merge pull request #29 from lite-xl/PR/remove-sysconfig
Removed system configuration search paths.
Diffstat (limited to 'src')
-rw-r--r-- | src/lpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } } |