X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=update-index.c;h=afec98dd48f59e095c0884c821c85b7228b45201;hb=5b5d4d9e1b31997b3179e6a253d47b7eea03d0fa;hp=a84a04f91855f1953f33cfa7573b7656e7c116b9;hpb=429608fc365d4e6e0db9dee72a0b103dce578722;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 */