]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/am.c
Switch empty tree and blob lookups to use hash abstraction
[thirdparty/git.git] / builtin / am.c
index 92c48535052c2e32e46eeedfc86b009e7ae0726c..99dbde3e856a9533f2c2b316947fd8c631698efd 100644 (file)
@@ -1433,7 +1433,7 @@ static void write_index_patch(const struct am_state *state)
        if (!get_oid_tree("HEAD", &head))
                tree = lookup_tree(&head);
        else
-               tree = lookup_tree(&empty_tree_oid);
+               tree = lookup_tree(the_hash_algo->empty_tree);
 
        fp = xfopen(am_path(state, "patch"), "w");
        init_revisions(&rev_info, NULL);