Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Leehr <leehro@gmail.com>2015-08-14 05:52:52 +0300
committerDan Leehr <leehro@gmail.com>2015-08-14 05:52:52 +0300
commitb0b2c72274efb660e63fcb8f476222bcccb6c680 (patch)
treef9ab6f6cad8f7495bc477654dcc56322f7c3eb9d
parentabbe17ef1ffbc264101808829a3317c1c805df96 (diff)
Fix bug in git_smart__push: push_transfer_progress cb is never called
The conditional checked cbs->transfer_progress then used the value in cbs->push_transfer_progress. In both cases it should be push_transfer_progress
-rw-r--r--src/transports/smart_protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/smart_protocol.c b/src/transports/smart_protocol.c
index 0920f2eef..1d46d4bc9 100644
--- a/src/transports/smart_protocol.c
+++ b/src/transports/smart_protocol.c
@@ -957,7 +957,7 @@ int git_smart__push(git_transport *transport, git_push *push, const git_remote_c
packbuilder_payload.pb = push->pb;
- if (cbs && cbs->transfer_progress) {
+ if (cbs && cbs->push_transfer_progress) {
packbuilder_payload.cb = cbs->push_transfer_progress;
packbuilder_payload.cb_payload = cbs->payload;
}