vendor/libgit2/src/sysdir.c in rugged-0.25.0b10 vs vendor/libgit2/src/sysdir.c in rugged-0.25.0
- old
+ new
@@ -169,10 +169,10 @@
if (search_path != NULL)
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 */
if (!expand_path) {
if (search_path)