author | Grégoire Barbier <gb@gbarbier.org> | |
Sat, 19 Jan 2008 15:22:48 +0000 (16:22 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 20 Jan 2008 23:17:58 +0000 (15:17 -0800) | ||
commit | 9bdbabade4303bb76d8115cb12470d229d7249e2 | |
tree | 19232b302110b21d05a977a08623cb376fc82b51 | tree | snapshot |
parent | 9116de5957423d553fce5857a835284a0527d037 | commit | diff |
http-push: fail when info/refs exists and is already locked
Failing instead of silently not updating remote refs makes the things
clearer for the user when trying to push on a repository while another
person do (or while a dandling locks are waiting for a 10 minutes
timeout).
When silently not updating remote refs, the user does not even know
that git has pushed the objects but leaved the refs as they were
before (e.g. a new bunch of commits on branch "master" is uploaded,
however the branch by itsel still points on the previous head commit).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Failing instead of silently not updating remote refs makes the things
clearer for the user when trying to push on a repository while another
person do (or while a dandling locks are waiting for a 10 minutes
timeout).
When silently not updating remote refs, the user does not even know
that git has pushed the objects but leaved the refs as they were
before (e.g. a new bunch of commits on branch "master" is uploaded,
however the branch by itsel still points on the previous head commit).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c | diff | blob | history |