summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-12-20 15:32:49 +0000
committerGitHub <noreply@github.com>2016-12-20 15:32:49 +0000
commit8d7717c471aabb9e09ea0421f1dea487ad6af02c (patch)
tree413253fba8b89235a2bd29943ce431ae1faa296c /src
parentf91f170f0e334963473a0f1060d2b07fbe63abbf (diff)
parent9f09f290bbe49865f57cadb68883af0cd3b2cb71 (diff)
downloadlibgit2-8d7717c471aabb9e09ea0421f1dea487ad6af02c.tar.gz
Merge pull request #4034 from libgit2/cmn/sysdir-no-reguess
sysdir: don't re-guess when using variable substitution
Diffstat (limited to 'src')
-rw-r--r--src/sysdir.c2
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 */