stash: convert branch to builtin
[gitweb.git] / builtin / unpack-objects.c
index ad438f5b41abf9ec82474b5e06dae7254b2068b7..80478808b3dcc7f98e5989140de1451783454c01 100644 (file)
@@ -579,7 +579,7 @@ int cmd_unpack_objects(int argc, const char **argv, const char *prefix)
                if (fsck_finish(&fsck_options))
                        die(_("fsck error in pack objects"));
        }
-       if (hashcmp(fill(the_hash_algo->rawsz), oid.hash))
+       if (!hasheq(fill(the_hash_algo->rawsz), oid.hash))
                die("final sha1 did not match");
        use(the_hash_algo->rawsz);