diff --git a/unpack-trees.c b/unpack-trees.c
index 0bc4b2ddca2d96e16c3f7b32e8e922f426706be6..07f83642443601d107e0a2425407b3250c022dcd 100644 (file)
--- a/unpack-trees.c
+++ b/unpack-trees.c
if (ce->ce_flags & CE_WT_REMOVE) {
display_progress(progress, ++cnt);
- if (o->update)
+ if (o->update && !o->dry_run)
unlink_entry(ce);
continue;
}
if (ce->ce_flags & CE_UPDATE) {
display_progress(progress, ++cnt);
ce->ce_flags &= ~CE_UPDATE;
- if (o->update) {
+ if (o->update && !o->dry_run) {
errs |= checkout_entry(ce, &state, NULL);
}
}