Re: [PATCH 3/5] receive-pack.c: use a single ref_transaction for atomic pushes

2014-12-15 Thread Junio C Hamano
Stefan Beller writes: > @@ -832,34 +834,56 @@ static const char *update(struct command *cmd, struct > shallow_info *si) > cmd->did_not_exist = 1; > } > } > - if (delete_ref(namespaced_name, old_sha1, 0)) { > -

[PATCH 3/5] receive-pack.c: use a single ref_transaction for atomic pushes

2014-12-15 Thread Stefan Beller
From: Ronnie Sahlberg Update receive-pack to use an atomic transaction iff the client negotiated that it wanted atomic-push. This leaves the default behavior to be the old non-atomic one ref at a time update. This is to cause as little disruption as possible to existing clients. It is unknown if