]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/mktag.c
object API users + docs: check <0, not !0 with check_object_signature()
[thirdparty/git.git] / builtin / mktag.c
index 96a3686af531d4d37ea2789e7ff99e31cb083eb1..98d1e66f3279dc98bb294bdf5c62bcb6f6b322aa 100644 (file)
@@ -97,7 +97,7 @@ int cmd_mktag(int argc, const char **argv, const char *prefix)
                                &tagged_oid, &tagged_type))
                die(_("tag on stdin did not pass our strict fsck check"));
 
-       if (verify_object_in_tag(&tagged_oid, &tagged_type))
+       if (verify_object_in_tag(&tagged_oid, &tagged_type) < 0)
                die(_("tag on stdin did not refer to a valid object"));
 
        if (write_object_file(buf.buf, buf.len, OBJ_TAG, &result) < 0)