summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuc Bertrand <grumpy@cacou.net>2011-08-03 13:37:24 +0200
committerLuc Bertrand <grumpy@cacou.net>2011-08-03 13:37:24 +0200
commit8cf077f4d52e53f9b09e72bae2a358aa282d89f9 (patch)
treecd73ec3539b3262bdf1decb313e7b87ed1228c97 /src
parent03d88ed415a09faf161d8a081c18f51826be584a (diff)
downloadlibgit2-8cf077f4d52e53f9b09e72bae2a358aa282d89f9.tar.gz
fix recurse_tree_entries, continue parsing tree after first subdirectory found
Diffstat (limited to 'src')
-rw-r--r--src/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/status.c b/src/status.c
index 3e46ea873..8be46eb01 100644
--- a/src/status.c
+++ b/src/status.c
@@ -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) {
recurse_tree_entries(subtree, entries, file_path);
git_tree_close(subtree);
- return;
+ continue;
}
if ((idx = find_status_entry(entries, file_path)) != GIT_ENOTFOUND)