diff options
Diffstat (limited to 'src/indexer.c')
-rw-r--r-- | src/indexer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/indexer.c b/src/indexer.c index 852a04120..7312809bf 100644 --- a/src/indexer.c +++ b/src/indexer.c @@ -387,10 +387,8 @@ on_error: static int do_progress_callback(git_indexer *idx, git_transfer_progress *stats) { if (idx->progress_cb && - idx->progress_cb(stats, idx->progress_payload)) { - giterr_clear(); - return GIT_EUSER; - } + idx->progress_cb(stats, idx->progress_payload)) + return giterr_user_cancel(); return 0; } |