builtin/branch: strip refs/heads/ using skip_prefix
[gitweb.git] / builtin / describe.c
index 979556d9fb08720d509cb2d3cdbb6d5aeda3351c..e14e162ef6ef829072f01f89ab2c797256a6861d 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);