]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/show-ref.c
refs: convert peel_ref to struct object_id
[thirdparty/git.git] / builtin / show-ref.c
index cbb8cfc7d261d4cd3c01ba41705f69da10128c42..41e5e71cad660d26ddc90ffeaa383fd7bf10f79f 100644 (file)
@@ -38,7 +38,7 @@ static void show_one(const char *refname, const struct object_id *oid)
        if (!deref_tags)
                return;
 
-       if (!peel_ref(refname, peeled.hash)) {
+       if (!peel_ref(refname, &peeled)) {
                hex = find_unique_abbrev(peeled.hash, abbrev);
                printf("%s %s^{}\n", hex, refname);
        }