Skip to content

Commit cf6de29

Browse files
committed
Merge branch 'tr/sha1-file-silence-loose-object-info-under-prune-race'
* tr/sha1-file-silence-loose-object-info-under-prune-race: sha1_file: silence sha1_loose_object_info
2 parents f4c52a0 + dbea72a commit cf6de29

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
@@ -2348,7 +2348,7 @@ static int sha1_loose_object_info(const unsigned char *sha1, unsigned long *size
23482348

23492349
map = map_sha1_file(sha1, &mapsize);
23502350
if (!map)
2351-
return error("unable to find %s", sha1_to_hex(sha1));
2351+
return -1;
23522352
if (unpack_sha1_header(&stream, map, mapsize, hdr, sizeof(hdr)) < 0)
23532353
status = error("unable to unpack %s header",
23542354
sha1_to_hex(sha1));

0 commit comments

Comments
 (0)