Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Fix git patch header processing in git-apply.
author
Robert Fitzsimons
<robfitz@273k.net>
Sun, 28 Aug 2005 15:24:27 +0000
(15:24 +0000)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 28 Aug 2005 21:24:01 +0000
(14:24 -0700)
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>
apply.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
ba966b9
)
diff --git
a/apply.c
b/apply.c
index 7c1a8411f21ee42d095e6c5a515987ef2a6f779a..3ebbf6b1dcbd52d700c5d0e53cad4c3951cf1979 100644
(file)
--- a/
apply.c
+++ b/
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 (;;) {