Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Make .git directory validation code test HEAD

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:05

Linus Torvalds [off-list ref] 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 Andrew's naked git
repository detection issue, but one thing I was undecided was
that if we would want to forbid either of these "directories"
being a symlink to another directory.  I think it would be OK;
admittedly "test -d" says OK for a symlink to a directory.

I accept the patch, but will not apply and push it out right
now; I am not in a shape to be operating heavy equipment ;-).
Please wait until tomorrow morning.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help