X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=unpack-trees.c;h=07f83642443601d107e0a2425407b3250c022dcd;hb=6b37dff17f176d7e87efa93b4cf521dd725de247;hp=0bc4b2ddca2d96e16c3f7b32e8e922f426706be6;hpb=61d7503da141f13bc916b36012760791761cc909;p=git.git diff --git a/unpack-trees.c b/unpack-trees.c index 0bc4b2ddc..07f836424 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -203,7 +203,7 @@ static int check_updates(struct unpack_trees_options *o) if (ce->ce_flags & CE_WT_REMOVE) { display_progress(progress, ++cnt); - if (o->update) + if (o->update && !o->dry_run) unlink_entry(ce); continue; } @@ -217,7 +217,7 @@ static int check_updates(struct unpack_trees_options *o) 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); } }