sha1_file: don't mix enum with int
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
7356b51e4b
commit
5e12e78e52
@ -2616,7 +2616,7 @@ static int index_mem(unsigned char *sha1, void *buf, size_t size,
|
|||||||
if ((type == OBJ_BLOB) && path) {
|
if ((type == OBJ_BLOB) && path) {
|
||||||
struct strbuf nbuf = STRBUF_INIT;
|
struct strbuf nbuf = STRBUF_INIT;
|
||||||
if (convert_to_git(path, buf, size, &nbuf,
|
if (convert_to_git(path, buf, size, &nbuf,
|
||||||
write_object ? safe_crlf : 0)) {
|
write_object ? safe_crlf : SAFE_CRLF_FALSE)) {
|
||||||
buf = strbuf_detach(&nbuf, &size);
|
buf = strbuf_detach(&nbuf, &size);
|
||||||
re_allocated = 1;
|
re_allocated = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user