]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/describe.c
refs: convert peel_ref to struct object_id
[thirdparty/git.git] / builtin / describe.c
index 29075dbd0f884513420b646cdb06d7c0b3d33643..352f8821fd8b46906f6ffe349d666a641ac184e6 100644 (file)
@@ -181,7 +181,7 @@ static int get_name(const char *path, const struct object_id *oid, int flag, voi
        }
 
        /* Is it annotated? */
-       if (!peel_ref(path, peeled.hash)) {
+       if (!peel_ref(path, &peeled)) {
                is_annotated = !!oidcmp(oid, &peeled);
        } else {
                oidcpy(&peeled, oid);