mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 17:42:31 +00:00
sysdir: don't guess the paths again when $PATH is specified
We should replace it with whatever the user set, not start again.
This commit is contained in:
parent
410855fc4b
commit
9f09f290bb
@ -171,7 +171,7 @@ int git_sysdir_set(git_sysdir_t which, const char *search_path)
|
||||
expand_path = strstr(search_path, PATH_MAGIC);
|
||||
|
||||
/* reset the default if this path has been cleared */
|
||||
if (!search_path || expand_path)
|
||||
if (!search_path)
|
||||
git_sysdir__dirs[which].guess(&git_sysdir__dirs[which].buf);
|
||||
|
||||
/* if $PATH is not referenced, then just set the path */
|
||||
|
Loading…
Reference in New Issue
Block a user