Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
get_packed_ref_cache: reload packed-refs file when it changes
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index b114cc922d4abce741b56e9da11fbef1382b4008..5c08701ae85d7bc5a4465ed138fd80b3f3480052 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-2348,7
+2348,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));