]> git.ipfire.org Git - thirdparty/git.git/blobdiff - blame.c
hash: provide per-algorithm null OIDs
[thirdparty/git.git] / blame.c
diff --git a/blame.c b/blame.c
index 5018bb8fb2ce810f18f7e57ab26c659b6f943745..206c295660f29b1fd44842ef0f28caf4d2e04788 100644 (file)
--- a/blame.c
+++ b/blame.c
@@ -242,7 +242,7 @@ static struct commit *fake_working_tree_commit(struct repository *r,
                switch (st.st_mode & S_IFMT) {
                case S_IFREG:
                        if (opt->flags.allow_textconv &&
-                           textconv_object(r, read_from, mode, &null_oid, 0, &buf_ptr, &buf_len))
+                           textconv_object(r, read_from, mode, null_oid(), 0, &buf_ptr, &buf_len))
                                strbuf_attach(&buf, buf_ptr, buf_len, buf_len + 1);
                        else if (strbuf_read_file(&buf, read_from, st.st_size) != st.st_size)
                                die_errno("cannot open or read '%s'", read_from);