diff options
author | Vicent Martà <vicent@github.com> | 2013-10-03 19:18:41 +0400 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-10-03 19:18:41 +0400 |
commit | 146b4d1c5f98aa14df086503f996d131d40b92f8 (patch) | |
tree | f309e77ce7de8e1de85eb2f9b01f5e71c782bbe8 /src/push.c | |
parent | ab1368766240cfe861729642abe1cddd01c0203e (diff) | |
parent | 7baa7631eab48fba1427b0c7b4b109da09dd050b (diff) |
Merge pull request #1888 from jamill/network_cancellation
network cancellation improvements
Diffstat (limited to 'src/push.c')
-rw-r--r-- | src/push.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/push.c b/src/push.c index 698079253..a799db8d0 100644 --- a/src/push.c +++ b/src/push.c @@ -582,7 +582,7 @@ static int calculate_work(git_push *push) static int do_push(git_push *push) { - int error; + int error = 0; git_transport *transport = push->remote->transport; if (!transport->push) { @@ -611,8 +611,6 @@ static int do_push(git_push *push) (error = transport->push(transport, push)) < 0) goto on_error; - error = 0; - on_error: git_packbuilder_free(push->pb); return error; |