Merge branch 'rt/for-each-ref-spell-tcl-as-Tcl'
[gitweb.git] / builtin / fsck.c
index e9ba576c1fe85cab505eb13fc20ae68dcfc19ff3..a27515aeaa2debabdb14a03d271fe423d13b19d2 100644 (file)
@@ -556,7 +556,7 @@ static int fsck_head_link(void)
        if (verbose)
                fprintf(stderr, "Checking HEAD link\n");
 
-       head_points_at = resolve_ref_unsafe("HEAD", head_sha1, 0, &flag);
+       head_points_at = resolve_ref_unsafe("HEAD", 0, head_sha1, &flag);
        if (!head_points_at)
                return error("Invalid HEAD");
        if (!strcmp(head_points_at, "HEAD"))