summaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <Johannes.Schindelin@gmx.de>2006-11-28 00:18:55 +0100
committerLibravatar Junio C Hamano <junkio@cox.net>2006-11-27 16:56:54 -0800
commitf0df4ed5629c25e9978708115ad654b9f83f55df (patch)
treef0fe42646e119da881b57d642a816b937553007c /git-clone.sh
parentshortlog: use pager (diff)
downloadtgif-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 'git-clone.sh')
0 files changed, 0 insertions, 0 deletions