author | Junio C Hamano <gitster@pobox.com> | |
Fri, 30 Jan 2009 08:50:54 +0000 (00:50 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 31 Jan 2009 03:23:22 +0000 (19:23 -0800) | ||
commit | e15ef669437d8396e0a442719ed54eb1df38366a | |
tree | 0d5a7764413e64e5a55d37727b1a11f7822076c7 | tree | snapshot |
parent | 469e2ebf63cbf05455365aa3ed6d43acf6f4e496 | commit | diff |
fsck: check loose objects from alternate object stores by default
"git fsck" used to validate only loose objects that are local and nothing
else by default. This is not just too little when a repository is
borrowing objects from other object stores, but also caused the
connectivity check to mistakenly declare loose objects borrowed from them
to be missing.
The rationale behind the default mode that validates only loose objects is
because these objects are still young and more unlikely to have been
pushed to other repositories yet. That holds for loose objects borrowed
from alternate object stores as well.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
"git fsck" used to validate only loose objects that are local and nothing
else by default. This is not just too little when a repository is
borrowing objects from other object stores, but also caused the
connectivity check to mistakenly declare loose objects borrowed from them
to be missing.
The rationale behind the default mode that validates only loose objects is
because these objects are still young and more unlikely to have been
pushed to other repositories yet. That holds for loose objects borrowed
from alternate object stores as well.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fsck.c | diff | blob | history | |
t/t1450-fsck.sh | diff | blob | history |