diff options
author | Ben Straub <bs@github.com> | 2013-02-05 13:14:48 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-02-05 13:14:48 -0800 |
commit | def60ea4731368fa3624cb6cbdc704d3dfcbc458 (patch) | |
tree | d17e78c5f560272752ee68e0cc86c53d8084e0da /tests-clar/online/clone.c | |
parent | 42385c96d5b6e7382f3cf9663e9789f3c56f9d9d (diff) | |
download | libgit2-def60ea4731368fa3624cb6cbdc704d3dfcbc458.tar.gz |
Allow all non-zero returns to cancel transfers
Diffstat (limited to 'tests-clar/online/clone.c')
-rw-r--r-- | tests-clar/online/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/online/clone.c b/tests-clar/online/clone.c index 020c29e9f..c1a9a9a88 100644 --- a/tests-clar/online/clone.c +++ b/tests-clar/online/clone.c @@ -189,7 +189,7 @@ static int cancel_at_half(const git_transfer_progress *stats, void *payload) GIT_UNUSED(payload); if (stats->received_objects > (stats->total_objects/2)) - return -1; + return 1; return 0; } |