aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index fdb974014..20f68ec38 100644
--- a/diff.c
+++ b/diff.c
@@ -3739,7 +3739,7 @@ static void prep_temp_blob(const char *path, struct diff_tempfile *temp,
size = buf.len;
}
if (write_in_full(fd, blob, size) != size ||
- close_tempfile(&temp->tempfile))
+ close_tempfile_gently(&temp->tempfile))
die_errno("unable to write temp-file");
temp->name = get_tempfile_path(&temp->tempfile);
oid_to_hex_r(temp->hex, oid);