Convert lookup_commit* to struct object_id
[gitweb.git] / builtin / clone.c
index de85b85254e49ba0211ea6476179fc6d4c774ca9..646f2879258e5a023e83117a5d247c7c2d05aec1 100644 (file)
@@ -682,7 +682,7 @@ static void update_head(const struct ref *our, const struct ref *remote,
                        install_branch_config(0, head, option_origin, our->name);
                }
        } else if (our) {
-               struct commit *c = lookup_commit_reference(our->old_oid.hash);
+               struct commit *c = lookup_commit_reference(&our->old_oid);
                /* --branch specifies a non-branch (i.e. tags), detach HEAD */
                update_ref(msg, "HEAD", c->object.oid.hash,
                           NULL, REF_NODEREF, UPDATE_REFS_DIE_ON_ERR);