fix filtering for directory paths in 'got log'
diff --git a/lib/object.c b/lib/object.c
index 7ea8b37..0e9ce6b 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -858,14 +858,11 @@ got_object_tree_path_changed(int *changed,
goto done;
}
- if (S_ISREG(te1->mode)) { /* final path element */
+ if (len == 0) { /* final path element */
*changed = 1;
goto done;
}
- if (len == 0)
- break;
-
seg = s + 1;
s++;
len--;