diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-11-28 00:18:55 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-27 16:56:54 -0800 |
commit | f0df4ed5629c25e9978708115ad654b9f83f55df (patch) | |
tree | f0fe42646e119da881b57d642a816b937553007c /pkt-line.h | |
parent | 1d541c120b4de5c70e73f8a20e1d961324cc55fe (diff) | |
download | git-f0df4ed5629c25e9978708115ad654b9f83f55df.tar.gz git-f0df4ed5629c25e9978708115ad654b9f83f55df.tar.xz |
sha1_object_info(): be consistent with read_sha1_file()
We used to try loose objects first with sha1_object_info(), but packed
objects first with read_sha1_file(). Now, prefer packed objects over loose
ones with sha1_object_info(), too.
Usually the old behaviour would pose no problem, but when you tried to fix
a fscked up repository by inserting a known-good pack,
git cat-file $(git cat-file -t <sha1>) <sha1>
could fail, even when
git cat-file blob <sha1>
would _not_ fail. Worse, a repack would fail, too.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pkt-line.h')
0 files changed, 0 insertions, 0 deletions