Skip to content

Commit

Permalink
Merge branch 'tr/sha1-file-silence-loose-object-info-under-prune-race'
Browse files Browse the repository at this point in the history
* tr/sha1-file-silence-loose-object-info-under-prune-race:
  sha1_file: silence sha1_loose_object_info
  • Loading branch information
Junio C Hamano committed Jun 11, 2013
2 parents f4c52a0 + dbea72a commit cf6de29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sha1_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit cf6de29

Please sign in to comment.