threads / discuss / 22014

Atomicity of git-push operation.

Subject: Atomicity of git-push operation.

## tl;dr

2 messages between Dec 23, 2009 and Dec 23, 2009.

replies: 1people: 2as markdown or json

Jan Zalcman· Dec 23, 2009, 11:51 UTC · lore
Hi,
  I have a simple question about "push" operation but I couldn't find an
answer: is git-push (also with --tags flag) atomic ? Especially: if refs
changing (during push) is atomic ?
Thanks,
Janek
Shawn O. Pearce· Dec 23, 2009, 15:25 UTC · re: Jan Zalcman · lore

Re: Atomicity of git-push operation.

Jan Zalcman <zalcman@9livesdata.com> wrote:
>  I have a simple question about "push" operation but I couldn't find an
> answer: is git-push (also with --tags flag) atomic ? Especially: if refs
> changing (during push) is atomic ?
Yes, its atomic, at the per-ref level.

If you push 3 refs, and one of them updates during the push, the other two will push successfully, but the one that was updated will be rejected.

-- 
Shawn.

← back to recent threads