Re: [PATCH 0/3] Fixing volatile HEAD in push.default = current
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- May 22, 2013, 14:43 UTC
- Message-ID
- <CALkWK0kXonM+J92KHs+dW31A_kZ8h9jNqwYn8AqT_V+GJhe_vg@mail.gmail.com>
- In-Reply-To
- <7v7girks4s.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> The patch may have been done by a wrong motivation, in that it does > not fundamentally "fix" the itch. The particular "itch" is not > something we are going to promise to the end users, ever, anyway.
Just out of curiosity, is it possible to write a correct fix at all? Even if the first statement in do_push() locks the HEAD ref, it's not enough: the program may be wading around in git.c/setup.c when I switch terminals and change HEAD, right?
So, our position on the matter is: no git command makes any guarantees with respect to races, correct?