checkout-index: fix checking out specific path.
3bd348aeea
commit broke checking
out specific paths.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
ed24928e12
commit
f4f9adaea7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user