Re: [PATCH v14 24/40] receive-pack.c: use a reference transaction for updating the refs

2014-06-11 Thread Ronnie Sahlberg
Thanks. Done. I added a function to stop leaking commands too. On Tue, Jun 10, 2014 at 4:18 PM, Jonathan Nieder jrnie...@gmail.com wrote: Ronnie Sahlberg wrote: --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -46,6 +46,7 @@ static void *head_name_to_free; static int

Re: [PATCH v14 24/40] receive-pack.c: use a reference transaction for updating the refs

2014-06-10 Thread Jonathan Nieder
Ronnie Sahlberg wrote: --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -46,6 +46,7 @@ static void *head_name_to_free; static int sent_capabilities; static int shallow_update; static const char *alt_shallow_file; +static struct string_list error_strings =

[PATCH v14 24/40] receive-pack.c: use a reference transaction for updating the refs

2014-06-06 Thread Ronnie Sahlberg
Wrap all the ref updates inside a transaction. Signed-off-by: Ronnie Sahlberg sahlb...@google.com --- builtin/receive-pack.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index c323081..13f4a63