diff --git a/index-pack.c b/index-pack.c
index e9a53032226edd5663458031734c135afb5db0ef..72e0962415d74c856917f6bb56e6fa2fea950c25 100644 (file)
--- a/index-pack.c
+++ b/index-pack.c
char buf[48];
int len = snprintf(buf, sizeof(buf), "%s\t%s\n",
report, sha1_to_hex(sha1));
- xwrite(1, buf, len);
+ write_or_die(1, buf, len);
/*
* Let's just mimic git-unpack-objects here and write