Re: Make .git directory validation code test HEAD

2005-08-27 Thread Junio C Hamano
Linus Torvalds <[EMAIL PROTECTED]> writes: > This also removes the tests for "$GIT_DIR" and "$GIT_OBJECT_DIRECTORY" > being directories, since the other tests will implicitly test for that > anyway (ie the tests for HEAD, refs and 00 would fail). I've thought about it when you brought up the An

Make .git directory validation code test HEAD

2005-08-27 Thread Linus Torvalds
Inspired by a report by Kalle Valo, this changes git-sh-setup-script and the "setup_git_directory()" function to test that $GIT_DIR/HEAD is a symlink, since a number of core git features depend on that these days. We used to allow a regular file there, but git-fsck-cache has been complaining abo