X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=builtin%2Fclone.c;h=c46ee29f0ad57958199804ab4fd4bef209bb0bc6;hb=c555caab7a303109d6c712d757bc4621a3ee0bbd;hp=2048b6760aa9f0a426524e5ea1bd7a3a4c4c5536;hpb=70c1cbf51535fc0d8ee55809646d95610f3dd558;p=thirdparty%2Fgit.git diff --git a/builtin/clone.c b/builtin/clone.c index 2048b6760a..c46ee29f0a 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -32,7 +32,6 @@ #include "connected.h" #include "packfile.h" #include "list-objects-filter-options.h" -#include "object-store.h" /* * Overall FIXMEs: @@ -785,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)) {