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:
Junio C Hamano 2005-12-13 21:39:56 -08:00
Родитель ed24928e12
Коммит f4f9adaea7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;