refs: convert resolve_refdup and refs_resolve_refdup to struct object_id
[gitweb.git] / builtin / clone.c
index 5cd1b02d531cfb8dc6be145683e856e1f32f8de2..695bdd70468a7e54af84a0ac2e813e0c2f808cfe 100644 (file)
@@ -715,7 +715,7 @@ static int checkout(int submodule_progress)
        if (option_no_checkout)
                return 0;
 
-       head = resolve_refdup("HEAD", RESOLVE_REF_READING, oid.hash, NULL);
+       head = resolve_refdup("HEAD", RESOLVE_REF_READING, &oid, NULL);
        if (!head) {
                warning(_("remote HEAD refers to nonexistent ref, "
                          "unable to checkout.\n"));