X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-revert.c;h=151aa6a981832954120359f7c953015525b530d8;hb=da8ba5e7da01be597aa9417c563dbd516ea5f204;hp=ae0139500a6b4226e8b38b580524c6273f69a8cb;hpb=1af4731b5435e708355f20463a458493aa0e5aca;p=git.git diff --git a/builtin-revert.c b/builtin-revert.c index ae0139500..151aa6a98 100644 --- a/builtin-revert.c +++ b/builtin-revert.c @@ -60,7 +60,7 @@ static void parse_args(int argc, const char **argv) OPT_END(), }; - if (parse_options(argc, argv, options, usage_str, 0) != 1) + if (parse_options(argc, argv, NULL, options, usage_str, 0) != 1) usage_with_options(usage_str, options); arg = argv[0]; @@ -135,7 +135,7 @@ static void add_to_msg(const char *string) { int len = strlen(string); if (write_in_full(msg_fd, string, len) < 0) - die ("Could not write to MERGE_MSG"); + die_errno ("Could not write to MERGE_MSG"); } static void add_message_to_msg(const char *message)