]> git.ipfire.org Git - thirdparty/git.git/blobdiff - wt-status.c
read_packed_refs(): report unexpected fopen() failures
[thirdparty/git.git] / wt-status.c
index 7daa5320ac7538835285495782e74be5423ed76b..48c9854d5306374db2606b40e2362bf6d452d851 100644 (file)
@@ -1428,7 +1428,7 @@ static void wt_status_get_detached_from(struct wt_status_state *state)
            /* sha1 is a commit? match without further lookup */
            (!oidcmp(&cb.noid, &oid) ||
             /* perhaps sha1 is a tag, try to dereference to a commit */
-            ((commit = lookup_commit_reference_gently(oid.hash, 1)) != NULL &&
+            ((commit = lookup_commit_reference_gently(&oid, 1)) != NULL &&
              !oidcmp(&cb.noid, &commit->object.oid)))) {
                const char *from = ref;
                if (!skip_prefix(from, "refs/tags/", &from))