Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 5eaeda7

Browse files
Pete Wyckoffgitster
authored andcommitted
remove blank filename in error message
When write_loose_object() finds that it is unable to create a temporary file, it complains, for instance: unable to create temporary sha1 filename : Too many open files That extra space was supposed to be the name of the file, and will be an empty string if the git_mkstemps_mode() fails. The name of the temporary file is unimportant; delete it. Signed-off-by: Pete Wyckoff <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 82247e9 commit 5eaeda7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sha1_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2511,7 +2511,7 @@ static int write_loose_object(const unsigned char *sha1, char *hdr, int hdrlen,
25112511
if (errno == EACCES)
25122512
return error("insufficient permission for adding an object to repository database %s", get_object_directory());
25132513
else
2514-
return error("unable to create temporary sha1 filename %s: %s", tmp_file, strerror(errno));
2514+
return error("unable to create temporary file: %s", strerror(errno));
25152515
}
25162516

25172517
/* Set it up */

0 commit comments

Comments
 (0)