diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/checkout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checkout.c b/src/checkout.c index 65487993b..7d3b035a9 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -2606,6 +2606,9 @@ int git_checkout_iterator( if ((error = checkout_get_actions(&actions, &counts, &data, workdir)) != 0) goto cleanup; + if (data.strategy & GIT_CHECKOUT_DRY_RUN) + goto cleanup; + data.total_steps = counts[CHECKOUT_ACTION__REMOVE] + counts[CHECKOUT_ACTION__REMOVE_CONFLICT] + counts[CHECKOUT_ACTION__UPDATE_BLOB] + |