diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-01-27 10:44:59 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-01-27 10:44:59 -0800 |
commit | 7b4e2b7e6aba677fcefffde79d0d3a53ae623b4f (patch) | |
tree | ece06476fdfbb8ea18973ff3b1eddd62cea1ca39 /builtin | |
parent | Merge branch 'rk/send-email-ssl-cert' (diff) | |
parent | mingw: remove mingw_write (diff) | |
download | tgif-7b4e2b7e6aba677fcefffde79d0d3a53ae623b4f.tar.xz |
Merge branch 'ef/mingw-write'
* ef/mingw-write:
mingw: remove mingw_write
prefer xwrite instead of write
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/merge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/merge.c b/builtin/merge.c index 4941a6c36a..e576a7fdc6 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -367,7 +367,7 @@ static void squash_message(struct commit *commit, struct commit_list *remotehead sha1_to_hex(commit->object.sha1)); pretty_print_commit(&ctx, commit, &out); } - if (write(fd, out.buf, out.len) < 0) + if (write_in_full(fd, out.buf, out.len) != out.len) die_errno(_("Writing SQUASH_MSG")); if (close(fd)) die_errno(_("Finishing SQUASH_MSG")); |