Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remove blank filename in error message
author
Pete Wyckoff
<pw@padd.com>
Mon, 30 Apr 2012 00:28:46 +0000
(20:28 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 30 Apr 2012 22:45:54 +0000
(15:45 -0700)
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 <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
82247e9
)
diff --git
a/sha1_file.c
b/sha1_file.c
index c8d572d1384b45385c184656eff26eb00d420960..3c4f1652f13479238dee56674cbb86d299363be1 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-2511,7
+2511,7
@@
static int write_loose_object(const unsigned char *sha1, char *hdr, int hdrlen,
if (errno == EACCES)
return error("insufficient permission for adding an object to repository database %s", get_object_directory());
else
- return error("unable to create temporary
sha1 filename %s: %s", tmp_file
, strerror(errno));
+ return error("unable to create temporary
file: %s"
, strerror(errno));
}
/* Set it up */