зеркало из https://github.com/microsoft/git.git
git-rerere: detect unparsable conflicts
rerere did not detect the case where <<< === >>> markers did not match. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
9022a495a3
Коммит
a1b32fdc3d
|
@ -144,6 +144,11 @@ static int handle_file(const char *path,
|
|||
fclose(out);
|
||||
if (sha1)
|
||||
SHA1_Final(sha1, &ctx);
|
||||
if (hunk) {
|
||||
if (output)
|
||||
unlink(output);
|
||||
return error("Could not parse conflict hunks in %s", path);
|
||||
}
|
||||
return hunk_no;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче