]> asedeno.scripts.mit.edu Git - git.git/blobdiff - sha1_file.c
Merge branch 'jk/clone-post-checkout'
[git.git] / sha1_file.c
index 456317356f323eb744c207d787a2e7598ad9601e..54972f97e004e2794416baac2f79806a608dc88e 100644 (file)
@@ -2287,7 +2287,7 @@ static void close_sha1_file(int fd)
                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 '/' */