зеркало из https://github.com/microsoft/git.git
[PATCH] Fix git patch header processing in git-apply.
Stop processing and return NULL if we encounter a '\n' character before we have two matching names in the git header. Signed-off-by: Robert Fitzsimons <robfitz@273k.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
ba966b9579
Коммит
e70a165d3d
2
apply.c
2
apply.c
|
@ -387,7 +387,7 @@ static char *git_header_name(char *line)
|
|||
default:
|
||||
continue;
|
||||
case '\n':
|
||||
break;
|
||||
return NULL;
|
||||
case '\t': case ' ':
|
||||
second = name+len;
|
||||
for (;;) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче