Commit 0594e3ef by nulltoken Committed by Vicent Marti

Prevent _dirent_loose_load() from choking on empty folders

parent e4029c52
......@@ -537,7 +537,7 @@ static int _dirent_loose_load(void *data, char *full_path)
int error;
if (gitfo_isdir(full_path) == GIT_SUCCESS)
gitfo_dirent(full_path, GIT_PATH_MAX, _dirent_loose_load, repository);
return gitfo_dirent(full_path, GIT_PATH_MAX, _dirent_loose_load, repository);
file_path = full_path + strlen(repository->path_repository);
error = loose_lookup(&reference, repository, file_path, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment