t/t6001-rev-list-graft.sh: use the $( ... ) construct for command substitution
[gitweb.git] / wt-status.c
index ced53dd1d49eb641f5505a8a75502e95de356c3c..bba25960b4e3c54a7c1d8861ea895fbe01aa3110 100644 (file)
@@ -1346,7 +1346,7 @@ static void wt_status_get_detached_from(struct wt_status_state *state)
            (!hashcmp(cb.nsha1, sha1) ||
             /* perhaps sha1 is a tag, try to dereference to a commit */
             ((commit = lookup_commit_reference_gently(sha1, 1)) != NULL &&
-             !hashcmp(cb.nsha1, commit->object.sha1)))) {
+             !hashcmp(cb.nsha1, commit->object.oid.hash)))) {
                const char *from = ref;
                if (!skip_prefix(from, "refs/tags/", &from))
                        skip_prefix(from, "refs/remotes/", &from);