author | Junio C Hamano <junkio@cox.net> | |
Tue, 15 Nov 2005 01:15:07 +0000 (17:15 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 15 Nov 2005 01:15:07 +0000 (17:15 -0800) | ||
commit | 9add69b1b1f76db874ed899c46fbe0b252aa3c23 | |
tree | f2f66041e72c49a6badf3451e642ffdd507c35c2 | tree | snapshot |
parent | 2ed02887bda74871bad64f1be36fb4f60d07706e | commit | diff |
apply: fix binary patch detection.
The comparison to find "Binary files " string was looking at a
wrong place when offset != 0.
Also, we may have the full 40-byte textual sha1 on the index
line; two off-by-one errors prevented it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
The comparison to find "Binary files " string was looking at a
wrong place when offset != 0.
Also, we may have the full 40-byte textual sha1 on the index
line; two off-by-one errors prevented it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
apply.c | diff | blob | history |