Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: silence sha1_loose_object_info
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 40b23297b2e1e60a3719e9c67256303e39456604..d804e25454a9f5e87ddce3a72853bdeac06d83c8 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-2140,7
+2140,7
@@
static int sha1_loose_object_info(const unsigned char *sha1, unsigned long *size
map = map_sha1_file(sha1, &mapsize);
if (!map)
- return
error("unable to find %s", sha1_to_hex(sha1))
;
+ return
-1
;
if (unpack_sha1_header(&stream, map, mapsize, hdr, sizeof(hdr)) < 0)
status = error("unable to unpack %s header",
sha1_to_hex(sha1));