Skip to content

Commit

Permalink
Fix helper's check-file to actually report errors when they happen
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Apr 12, 2019
1 parent 685de29 commit d7bcc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/cinnabar-helper.c
Expand Up @@ -1122,7 +1122,7 @@ static void do_check_file(struct string_list *args)
goto ok;

hg_sha1(&file.file, NULL, NULL, &result);
if (hg_oideq(&oid, &result))
if (!hg_oideq(&oid, &result))
goto error;

ok:
Expand Down

0 comments on commit d7bcc5e

Please sign in to comment.