]> git.ipfire.org Git - thirdparty/git.git/blobdiff - wt-status.c
Merge branch 'ea/blame-use-oideq'
[thirdparty/git.git] / wt-status.c
index bb0f9120de40f70578867dece592eeecdf0e1e23..d9872d543b5e367ddfa3cf37a97bc2e4207bd71c 100644 (file)
@@ -1569,7 +1569,7 @@ static void wt_status_get_detached_from(struct repository *r,
                return;
        }
 
-       if (dwim_ref(cb.buf.buf, cb.buf.len, &oid, &ref) == 1 &&
+       if (dwim_ref(cb.buf.buf, cb.buf.len, &oid, &ref, 1) == 1 &&
            /* sha1 is a commit? match without further lookup */
            (oideq(&cb.noid, &oid) ||
             /* perhaps sha1 is a tag, try to dereference to a commit */