worktree: rename is_worktree_locked to worktree_lock_reason
[gitweb.git] / builtin / tag.c
index 9a19ffb49f68d7c0318f650d34d0edbcd6db81d3..f6236321865773cb60907bfe8b56d96bbaf3e83a 100644 (file)
@@ -559,7 +559,7 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
            ref_transaction_commit(transaction, &err))
                die("%s", err.buf);
        ref_transaction_free(transaction);
-       if (force && !is_null_oid(&prev) && oidcmp(&prev, &object))
+       if (force && !is_null_oid(&prev) && !oideq(&prev, &object))
                printf(_("Updated tag '%s' (was %s)\n"), tag,
                       find_unique_abbrev(&prev, DEFAULT_ABBREV));