author | Thomas Rast <trast@student.ethz.ch> | |
Thu, 19 Feb 2009 11:13:39 +0000 (12:13 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 20 Feb 2009 08:02:48 +0000 (00:02 -0800) | ||
commit | 02a6552c28eabb524fcd23e8f5bd36e4f5afa63b | |
tree | 91648fa1cea8903758015c44044b0af19f6e4ecf | tree | snapshot |
parent | 289e162318bbf4b0f90dd70371046e1b20d4c0be | commit | diff |
Test fsck a bit harder
git-fsck, of all tools, has very few tests. This adds some more:
* a corrupted object;
* a branch pointing to a non-commit;
* a tag pointing to a nonexistent object;
* and a tag pointing to an object of a type other than what the tag
itself claims.
Only the first two are caught. At least the third probably should,
too, but currently slips through.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-fsck, of all tools, has very few tests. This adds some more:
* a corrupted object;
* a branch pointing to a non-commit;
* a tag pointing to a nonexistent object;
* and a tag pointing to an object of a type other than what the tag
itself claims.
Only the first two are caught. At least the third probably should,
too, but currently slips through.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1450-fsck.sh | diff | blob | history |