mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-21 20:34:17 +00:00
Prevent _dirent_loose_load() from choking on empty folders
This commit is contained in:
parent
e4029c5201
commit
0594e3efb7
@ -537,7 +537,7 @@ static int _dirent_loose_load(void *data, char *full_path)
|
|||||||
int error;
|
int error;
|
||||||
|
|
||||||
if (gitfo_isdir(full_path) == GIT_SUCCESS)
|
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);
|
file_path = full_path + strlen(repository->path_repository);
|
||||||
error = loose_lookup(&reference, repository, file_path, 1);
|
error = loose_lookup(&reference, repository, file_path, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user