]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diffcore-rename.c
sha1_file: convert hash_sha1_file to object_id
[thirdparty/git.git] / diffcore-rename.c
index 245e999fe5c6e9da62303423570d07aae5a88897..e27d0bb6327c173260d436f4fe63f1ac9a1fa228 100644 (file)
@@ -260,8 +260,8 @@ static unsigned int hash_filespec(struct diff_filespec *filespec)
        if (!filespec->oid_valid) {
                if (diff_populate_filespec(filespec, 0))
                        return 0;
-               hash_sha1_file(filespec->data, filespec->size, "blob",
-                              filespec->oid.hash);
+               hash_object_file(filespec->data, filespec->size, "blob",
+                                &filespec->oid);
        }
        return sha1hash(filespec->oid.hash);
 }