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

Re: [PATCH 1/4] git-init-db should error out with a message

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

Alex Riesen [off-list ref] writes:
I think the file ref version uses rename of HEAD.lock into HEAD, doesn't it?
Rename(2) should just remove the symlink, right?
If everybody used symlink or if everybody used regular file
symref, we would catch this race and the second one will be
stopped.  My point was that by falling back we are introducing
this unnecessary race, which might be unimportant but still it
is a new race.

To avoid that, I think symlink version needs to honor the
HEAD.lock convention, which would slow down normal cases.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help