summaryrefslogtreecommitdiff
path: root/src/push.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/push.c')
-rw-r--r--src/push.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/push.c b/src/push.c
index 428173397..8ebba15eb 100644
--- a/src/push.c
+++ b/src/push.c
@@ -659,8 +659,9 @@ int git_push_status_foreach(git_push *push,
unsigned int i;
git_vector_foreach(&push->status, i, status) {
- GITERR_CHECK_ERROR(
- GITERR_CALLBACK( cb(status->ref, status->msg, data) ) );
+ int error = cb(status->ref, status->msg, data);
+ if (error)
+ return GITERR_CALLBACK(error);
}
return 0;