sha1_file.c: make sure packs in an alternate odb is named properly.
authorJunio C Hamano <junkio@cox.net>
Mon, 5 Dec 2005 06:48:43 +0000 (22:48 -0800)
committerJunio C Hamano <junkio@cox.net>
Mon, 5 Dec 2005 07:19:31 +0000 (23:19 -0800)
commit1494e03888d084aa1da265f8534d235461b3fc91
tree311f223bfde9688185f74410d70692898765a4d1
parentb270c634b7d3dd197de6d155770fd7b044d76c5c
sha1_file.c: make sure packs in an alternate odb is named properly.

We somehow ended up registering packs in alternate object
directories as "dir/object//pack/pack-*", which confusd the
update-server-info code very badly.  Also we did not attempt to
detect a mistake of listing the object directory itself as one
of the alternates. This does not lead to incorrect behaviour,
but is simply wasteful, so try to do so when we are trivially
able to.

Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c