diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2016-12-17 18:20:29 +0000 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2016-12-18 14:47:27 +0000 |
commit | 9f09f290bbe49865f57cadb68883af0cd3b2cb71 (patch) | |
tree | 55e9a315db381859a8978273ec177206920a6fa0 | |
parent | 410855fc4b55d9f6d75e2be44393f039f1708935 (diff) | |
download | libgit2-cmn/sysdir-no-reguess.tar.gz |
sysdir: don't guess the paths again when $PATH is specifiedcmn/sysdir-no-reguess
We should replace it with whatever the user set, not start again.
-rw-r--r-- | src/sysdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdir.c b/src/sysdir.c index 29e53e239..e89db7697 100644 --- a/src/sysdir.c +++ b/src/sysdir.c @@ -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 */ |