]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/clone.c
refs.c: change resolve_ref_unsafe reading argument to be a flags field
[thirdparty/git.git] / builtin / clone.c
index d3bf9532d60fd52dfb440fc991e91544e8353fbe..7f509d06a81dca46ceeba0b15c48453c9a20fe6f 100644 (file)
@@ -623,7 +623,7 @@ static int checkout(void)
        if (option_no_checkout)
                return 0;
 
-       head = resolve_refdup("HEAD", sha1, 1, NULL);
+       head = resolve_refdup("HEAD", RESOLVE_REF_READING, sha1, NULL);
        if (!head) {
                warning(_("remote HEAD refers to nonexistent ref, "
                          "unable to checkout.\n"));