]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/clone.c
Merge branch 'rs/dedup-includes'
[thirdparty/git.git] / builtin / clone.c
index 9d73102c42b38d29e7447f1c78b7bd289be868e1..c46ee29f0ad57958199804ab4fd4bef209bb0bc6 100644 (file)
@@ -784,7 +784,7 @@ static int checkout(int submodule_progress)
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                die(_("unable to write new index file"));
 
-       err |= run_hook_le(NULL, "post-checkout", sha1_to_hex(null_sha1),
+       err |= run_hook_le(NULL, "post-checkout", oid_to_hex(&null_oid),
                           oid_to_hex(&oid), "1", NULL);
 
        if (!err && (option_recurse_submodules.nr > 0)) {