Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-apply: bad patch fragments are fatal
[gitweb.git]
/
apply.c
diff --git
a/apply.c
b/apply.c
index 85d7965daa09d01f05a65f5bdde8d889fd21744b..536b06829292485e36f1a8a8d83bed094702e49e 100644
(file)
--- a/
apply.c
+++ b/
apply.c
@@
-240,7
+240,7
@@
static int apply_single_patch(char *line, unsigned long size)
while (size > 4 && !memcmp(line, "@@ -", 4)) {
int len = apply_fragment(line, size);
if (len <= 0)
-
break
;
+
die("corrupt patch")
;
printf("applying fragment:\n%.*s\n\n", len, line);