Code

Make git-fsck-cache check HEAD integrity
authorLinus Torvalds <torvalds@g5.osdl.org>
Sun, 3 Jul 2005 17:40:38 +0000 (10:40 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 3 Jul 2005 17:40:38 +0000 (10:40 -0700)
commitc33303839c76c41c9f85e5bd3f7b04fab60c38ca
tree38f671a7da0a9bd9886f437ef45fe269ee7767b4
parent6da4016aea2dc5bf311fea160bd8ef96ca82b999
Make git-fsck-cache check HEAD integrity

In particular, check that it's a symlink, and points to refs/heads/.  We
depend on that these days not only for "git checkout", but also because
fsck and others only check for references in the .git/refs/
subdirectory, not things like HEAD itself.
fsck-cache.c