@matheusbsbs / matheus-bagliano / commits / f4f9adaea7
Fork 0

checkout-index: fix checking out specific path.

3bd348aeea24709cd9be4b9d741f79b6014cd7e3 commit broke checking out specific paths. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Dec 13, 2005 at 21:39 UTC f4f9adaea7e4e46337ae8312f34228a743f0cd89
1 file changed +1 -1
checkout-index.c
+1 -1
@@ -58,7 +58,7 @@ static int checkout_file(const char *name)
58
59 while (pos < active_nr) {
60 struct cache_entry *ce = active_cache[pos];
61 - if (ce_namelen(ce) != namelen &&
61 + if (ce_namelen(ce) != namelen ||
62 memcmp(ce->name, name, namelen))
63 break;
64 has_same_name = 1;