Commit f970fa8a980e124a69269d38459cc069c8b5e7ef

Stefan Sperling 2018-09-15T20:27:04

fix filtering for directory paths in 'got log'

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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--;