We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 410855f commit 9f09f29Copy full SHA for 9f09f29
src/sysdir.c
@@ -171,7 +171,7 @@ int git_sysdir_set(git_sysdir_t which, const char *search_path)
171
expand_path = strstr(search_path, PATH_MAGIC);
172
173
/* reset the default if this path has been cleared */
174
- if (!search_path || expand_path)
+ if (!search_path)
175
git_sysdir__dirs[which].guess(&git_sysdir__dirs[which].buf);
176
177
/* if $PATH is not referenced, then just set the path */
0 commit comments