diff options
Diffstat (limited to 'src/push.c')
-rw-r--r-- | src/push.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/push.c b/src/push.c index a314922c1..428173397 100644 --- a/src/push.c +++ b/src/push.c @@ -659,8 +659,8 @@ int git_push_status_foreach(git_push *push, unsigned int i; git_vector_foreach(&push->status, i, status) { - if (cb(status->ref, status->msg, data) < 0) - return giterr_user_cancel(); + GITERR_CHECK_ERROR( + GITERR_CALLBACK( cb(status->ref, status->msg, data) ) ); } return 0; |