diff options
Diffstat (limited to 'src/status.c')
-rw-r--r-- | src/status.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/status.c b/src/status.c index d76617a72..d4a436283 100644 --- a/src/status.c +++ b/src/status.c @@ -392,9 +392,10 @@ int git_status_foreach_ext( status_entry->head_to_index->old_file.path : status_entry->index_to_workdir->old_file.path; - error = GITERR_CALLBACK( cb(path, status_entry->status, payload) ); - if (error) + if ((error = cb(path, status_entry->status, payload)) != 0) { + GITERR_CALLBACK(error); break; + } } git_status_list_free(status); |