Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-02-06 01:14:48 +0400
committerBen Straub <bs@github.com>2013-02-06 01:14:48 +0400
commitdef60ea4731368fa3624cb6cbdc704d3dfcbc458 (patch)
treed17e78c5f560272752ee68e0cc86c53d8084e0da /src/indexer.c
parent42385c96d5b6e7382f3cf9663e9789f3c56f9d9d (diff)
Allow all non-zero returns to cancel transfers
Diffstat (limited to 'src/indexer.c')
-rw-r--r--src/indexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexer.c b/src/indexer.c
index 08c88ba18..4ff5e72d6 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -536,7 +536,7 @@ int git_indexer_stream_add(git_indexer_stream *idx, const void *data, size_t siz
}
stats->received_objects++;
- if (do_progress_callback(idx, stats) < 0) {
+ if (do_progress_callback(idx, stats) != 0) {
error = GIT_EUSER;
goto on_error;
}