refs: convert delete_ref and refs_delete_ref to struct object_id
[gitweb.git] / builtin / tag.c
index 695cb0778e2cad52d829030b00f91a4b230224e1..272f0d31037c861db5982ed0fd98177d406001c6 100644 (file)
@@ -97,7 +97,7 @@ static int for_each_tag_name(const char **argv, each_tag_name_fn fn,
 static int delete_tag(const char *name, const char *ref,
                      const struct object_id *oid, const void *cb_data)
 {
-       if (delete_ref(NULL, ref, oid->hash, 0))
+       if (delete_ref(NULL, ref, oid, 0))
                return 1;
        printf(_("Deleted tag '%s' (was %s)\n"), name, find_unique_abbrev(oid->hash, DEFAULT_ABBREV));
        return 0;