diff --git a/sha1_file.c b/sha1_file.c
index 5b6e0f61faa9d0ab93507e59b1e4704df97d9b79..a07aa4e5c491d16f65bc109673e806e24efb2274 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
if (p->pack_fd == -1 && open_packed_git(p))
die("packfile %s cannot be accessed", p->pack_name);
- /* Since packfiles end in a hash of their content and its
+ /* Since packfiles end in a hash of their content and it's
* pointless to ask for an offset into the middle of that
* hash, and the in_window function above wouldn't match
* don't allow an offset too close to the end of the file.
fsync_or_die(fd, "sha1 file");
fchmod(fd, 0444);
if (close(fd) != 0)
- die("unable to write sha1 file");
+ die("error when closing sha1 file (%s)", strerror(errno));
}
/* Size of directory component, including the ending '/' */