]> git.ipfire.org Git - thirdparty/git.git/blobdiff - wt-status.c
cocci: apply the "refs.h" part of "the_repository.pending"
[thirdparty/git.git] / wt-status.c
index c55c51b19244d728f872e3f49949928f1eba23dd..dcd1d0cee4c812d5686f3aa94306b2e3f363b498 100644 (file)
@@ -1664,7 +1664,8 @@ static void wt_status_get_detached_from(struct repository *r,
                return;
        }
 
-       if (dwim_ref(cb.buf.buf, cb.buf.len, &oid, &ref, 1) == 1 &&
+       if (repo_dwim_ref(the_repository, cb.buf.buf, cb.buf.len, &oid, &ref,
+                         1) == 1 &&
            /* oid is a commit? match without further lookup */
            (oideq(&cb.noid, &oid) ||
             /* perhaps oid is a tag, try to dereference to a commit */