Thread (89 messages) 89 messages, 4 authors, 2016-06-15

Re: [PATCH v20 31/48] receive-pack.c: use a reference transaction for updating the refs

From: Ronnie Sahlberg <hidden>
Date: 2016-06-15 23:01:55

On Tue, Jul 8, 2014 at 6:20 AM, Michael Haggerty [off-list ref] wrote:
On 06/20/2014 04:43 PM, Ronnie Sahlberg wrote:
quoted
Wrap all the ref updates inside a transaction.

Signed-off-by: Ronnie Sahlberg <redacted>
---
 builtin/receive-pack.c | 96 +++++++++++++++++++++++++++++++++-----------------
 1 file changed, 63 insertions(+), 33 deletions(-)
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index c323081..b51f8ae 100644
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
[...]
@@ -647,6 +654,9 @@ static void check_aliased_update(struct command *cmd, struct string_list *list)
      char cmd_oldh[41], cmd_newh[41], dst_oldh[41], dst_newh[41];
      int flag;

+     if (cmd->error_string)
+             die("BUG: check_alised_update called with failed cmd");
s/check_alised_update/check_aliased_update/
Done, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help