X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=update-index.c;h=afec98dd48f59e095c0884c821c85b7228b45201;hb=72fdfb50f721460e4cdff16fbe9c72d4ce6c668c;hp=a84a04f91855f1953f33cfa7573b7656e7c116b9;hpb=59617ebb746b67921856c00a63f943d43b0abeea;p=git.git diff --git a/update-index.c b/update-index.c index a84a04f9..afec98dd 100644 --- a/update-index.c +++ b/update-index.c @@ -367,7 +367,7 @@ static void read_index_info(int line_termination) if (!tab || tab - ptr < 41) goto bad_line; - if (tab[-2] == ' ' && '1' <= tab[-1] && tab[-1] <= '3') { + if (tab[-2] == ' ' && '0' <= tab[-1] && tab[-1] <= '3') { stage = tab[-1] - '0'; ptr = tab + 1; /* point at the head of path */ tab = tab - 2; /* point at tail of sha1 */