log.finest(this + " valid " + type + " " + sha1);
return true;
}
else if (type == GitType.COMMIT) {
GitCommit commit = readCommit(sha1);
if (commit == null)
return false;
return validateHash(commit.getTree());
}
else if (type == GitType.TREE) {
GitTree tree = readTree(sha1);
for (GitTree.Entry entry : tree.entries()) {