mirror of
https://github.com/git-for-windows/git.git
synced 2025-12-12 15:59:24 -06:00
checkout-index: fix checking out specific path.
3bd348aeea24709cd9be4b9d741f79b6014cd7e3 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…
x
Reference in New Issue
Block a user