From f4f9adaea7e4e46337ae8312f34228a743f0cd89 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 13 Dec 2005 21:39:56 -0800 Subject: [PATCH] checkout-index: fix checking out specific path. 3bd348aeea24709cd9be4b9d741f79b6014cd7e3 commit broke checking out specific paths. Signed-off-by: Junio C Hamano --- checkout-index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkout-index.c b/checkout-index.c index 1e1c9727e0..53dd8cba6f 100644 --- a/checkout-index.c +++ b/checkout-index.c @@ -58,7 +58,7 @@ static int checkout_file(const char *name) while (pos < active_nr) { struct cache_entry *ce = active_cache[pos]; - if (ce_namelen(ce) != namelen && + if (ce_namelen(ce) != namelen || memcmp(ce->name, name, namelen)) break; has_same_name = 1; -- 2.11.4.GIT