summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/odb.c b/src/odb.c
index 8662e80a3..d69f75221 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -669,6 +669,8 @@ int git_odb__add_default_backends(
if (db->do_fsync)
loose_opts.flags |= GIT_ODB_BACKEND_LOOSE_FSYNC;
+ loose_opts.oid_type = db->options.oid_type;
+
/* add the loose object backend */
if (git_odb_backend_loose(&loose, objects_dir, &loose_opts) < 0 ||
add_backend_internal(db, loose, git_odb__loose_priority, as_alternates, inode) < 0)