Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5470fd6

Browse files
dleehrcarlosmn
authored andcommitted
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
1 parent 7a21504 commit 5470fd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transports/smart_protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ int git_smart__push(git_transport *transport, git_push *push, const git_remote_c
957957

958958
packbuilder_payload.pb = push->pb;
959959

960-
if (cbs && cbs->transfer_progress) {
960+
if (cbs && cbs->push_transfer_progress) {
961961
packbuilder_payload.cb = cbs->push_transfer_progress;
962962
packbuilder_payload.cb_payload = cbs->payload;
963963
}

0 commit comments

Comments
 (0)