summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlosmn@github.com>2016-08-08 15:13:59 +0200
committerGitHub <noreply@github.com>2016-08-08 15:13:59 +0200
commit97e57e8770132d61ff2c36bee2de2c7ac5c9d609 (patch)
treea9205c2341d89126b301a75b1c8431f2942f0329 /src
parentb47e79e2cd68a507311ee0276a3503f7e00591d0 (diff)
parent9bc8c80ffa3d20e958406a104c521e2aae0f1255 (diff)
downloadlibgit2-97e57e8770132d61ff2c36bee2de2c7ac5c9d609.tar.gz
Merge pull request #3887 from libgit2/ethomson/empty_blob
odb: only provide the empty tree
Diffstat (limited to 'src')
-rw-r--r--src/odb.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/odb.c b/src/odb.c
index 253023ce1..acf4dea71 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -54,14 +54,9 @@ static int load_alternates(git_odb *odb, const char *objects_dir, int alternate_
static git_otype odb_hardcoded_type(const git_oid *id)
{
- static git_oid empty_blob = {{ 0xe6, 0x9d, 0xe2, 0x9b, 0xb2, 0xd1, 0xd6, 0x43, 0x4b, 0x8b,
- 0x29, 0xae, 0x77, 0x5a, 0xd8, 0xc2, 0xe4, 0x8c, 0x53, 0x91 }};
static git_oid empty_tree = {{ 0x4b, 0x82, 0x5d, 0xc6, 0x42, 0xcb, 0x6e, 0xb9, 0xa0, 0x60,
0xe5, 0x4b, 0xf8, 0xd6, 0x92, 0x88, 0xfb, 0xee, 0x49, 0x04 }};
- if (!git_oid_cmp(id, &empty_blob))
- return GIT_OBJ_BLOB;
-
if (!git_oid_cmp(id, &empty_tree))
return GIT_OBJ_TREE;