summaryrefslogtreecommitdiff
path: root/src/refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/refs.c')
-rw-r--r--src/refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/refs.c b/src/refs.c
index 02d9b6b3e..e8e87e7ae 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -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);