Merge branch 'jc/denoise-rm-to-resolve'
[gitweb.git] / object.c
index 317647da3e55985a23194229926af1ecaae4b65f..07bdd5b26e2b10a8f4f7851e6c3d545ede23c461 100644 (file)
--- a/object.c
+++ b/object.c
@@ -61,7 +61,7 @@ int type_from_string_gently(const char *str, ssize_t len, int gentle)
  */
 static unsigned int hash_obj(const struct object_id *oid, unsigned int n)
 {
-       return sha1hash(oid->hash) & (n - 1);
+       return oidhash(oid) & (n - 1);
 }
 
 /*
@@ -517,7 +517,7 @@ void raw_object_store_clear(struct raw_object_store *o)
        o->loaded_alternates = 0;
 
        INIT_LIST_HEAD(&o->packed_git_mru);
-       close_all_packs(o);
+       close_object_store(o);
        o->packed_git = NULL;
 }