author | Junio C Hamano <junkio@cox.net> | |
Wed, 22 Feb 2006 19:16:38 +0000 (11:16 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 22 Feb 2006 19:16:38 +0000 (11:16 -0800) | ||
commit | 26125f6b9be8dac31f56bf3da60dfa0df6dc0b59 | |
tree | 1c7ae888daf8cc03e743e55008ea5ffa009704bb | tree | snapshot |
parent | aa064743fa69e2806d5e0af1fab103baa6fa57cd | commit | diff |
detect broken alternates.
The real problem triggered an earlier fix was that an alternate
entry was pointing at a removed directory. Complaining on
object/pack directory that cannot be opendir-ed produces noise
in an ancient repository that does not have object/pack
directory and has never been packed.
Detect the real user error and report it. Also if opendir
failed for other reasons (e.g. no read permissions), report that
as well.
Spotted by Andrew Vasquez <andrew.vasquez@qlogic.com>.
Signed-off-by: Junio C Hamano <junkio@cox.net>
The real problem triggered an earlier fix was that an alternate
entry was pointing at a removed directory. Complaining on
object/pack directory that cannot be opendir-ed produces noise
in an ancient repository that does not have object/pack
directory and has never been packed.
Detect the real user error and report it. Also if opendir
failed for other reasons (e.g. no read permissions), report that
as well.
Spotted by Andrew Vasquez <andrew.vasquez@qlogic.com>.
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c | diff | blob | history |