X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=update-index.c;h=afec98dd48f59e095c0884c821c85b7228b45201;hb=7982d74e1ca846e6ab9b1bfb1fcd9c34e3fd534f;hp=a84a04f91855f1953f33cfa7573b7656e7c116b9;hpb=7cb038a692ec0bdc0f442380678e8e87e26d4e68;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 */