X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=apply.c;h=2da225a8ecae356c1b3376d5a0671940f265509c;hb=88d9405600ece221306ac98db68c6bf756e1ff09;hp=179b3bbd00fc6da726491639920ba6540c9b3c71;hpb=64ecb6247f89783a53297436fa452478a83bda53;p=git.git diff --git a/apply.c b/apply.c index 179b3bbd..2da225a8 100644 --- a/apply.c +++ b/apply.c @@ -834,7 +834,7 @@ static int parse_fragment(char *line, unsigned long size, struct patch *patch, s patch->new_name = NULL; } - if (patch->is_new != !oldlines) + if (patch->is_new && oldlines) return error("new file depends on old contents"); if (patch->is_delete != !newlines) { if (newlines)