From d9dec3a83a2d74d9ff6f40734c623e45a616676e Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Tue, 27 Dec 2016 12:36:33 +0200 Subject: [PATCH] remove oid calculate from write --- sqlite/sqlite.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sqlite/sqlite.c b/sqlite/sqlite.c index 502adca..ea72e61 100644 --- a/sqlite/sqlite.c +++ b/sqlite/sqlite.c @@ -143,9 +143,6 @@ int sqlite_backend__write(git_odb_backend *_backend, const git_oid *id, const vo backend = (sqlite_backend *)_backend; - if ((error = git_odb_hash(id, data, len, type)) < 0) - return error; - error = SQLITE_ERROR; if (sqlite3_bind_text(backend->st_write, 1, (char *)id->id, 20, SQLITE_TRANSIENT) == SQLITE_OK &&