author | Linus Torvalds <torvalds@g5.osdl.org> | |
Sun, 3 Jul 2005 17:40:38 +0000 (10:40 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Sun, 3 Jul 2005 17:40:38 +0000 (10:40 -0700) | ||
commit | c33303839c76c41c9f85e5bd3f7b04fab60c38ca | |
tree | 38f671a7da0a9bd9886f437ef45fe269ee7767b4 | tree | snapshot |
parent | 6da4016aea2dc5bf311fea160bd8ef96ca82b999 | commit | diff |
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.
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 | diff | blob | history |