mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 21:08:56 +00:00
fix recurse_tree_entries, continue parsing tree after first subdirectory found
This commit is contained in:
parent
03d88ed415
commit
8cf077f4d5
@ -91,7 +91,7 @@ static void recurse_tree_entries(git_tree *tree, git_vector *entries, char *path
|
|||||||
if (git_tree_lookup(&subtree, tree->object.repo, &tree_entry->oid) == GIT_SUCCESS) {
|
if (git_tree_lookup(&subtree, tree->object.repo, &tree_entry->oid) == GIT_SUCCESS) {
|
||||||
recurse_tree_entries(subtree, entries, file_path);
|
recurse_tree_entries(subtree, entries, file_path);
|
||||||
git_tree_close(subtree);
|
git_tree_close(subtree);
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((idx = find_status_entry(entries, file_path)) != GIT_ENOTFOUND)
|
if ((idx = find_status_entry(entries, file_path)) != GIT_ENOTFOUND)
|
||||||
|
Loading…
Reference in New Issue
Block a user