sha1_file: convert hash_sha1_file to object_id
[gitweb.git] / dir.c
diff --git a/dir.c b/dir.c
index 22cadbda9d90e1797455150096b6007dcd4dd826..fe0f25463f957d65ee6914fd8bf040b0e5257789 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -846,8 +846,8 @@ static int add_excludes(const char *fname, const char *base, int baselen,
                                oidcpy(&oid_stat->oid,
                                       &istate->cache[pos]->oid);
                        else
-                               hash_sha1_file(buf, size, "blob",
-                                              oid_stat->oid.hash);
+                               hash_object_file(buf, size, "blob",
+                                                &oid_stat->oid);
                        fill_stat_data(&oid_stat->stat, &st);
                        oid_stat->valid = 1;
                }