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