aboutsummaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-23 14:33:52 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-23 14:33:52 -0700
commitdf2dd283164b7f1776b04dfbea9302a0bd1c170c (patch)
tree100a0df7424dcecce81e71f921ecbaad57eff53e /unpack-trees.c
parentde55703672ea47893702c0bfaffb4788d2eb3818 (diff)
parentfa64a2fdbeedd98c5f24d1662bcc470a8449abcf (diff)
downloadgit-df2dd283164b7f1776b04dfbea9302a0bd1c170c.tar.gz
git-df2dd283164b7f1776b04dfbea9302a0bd1c170c.tar.xz
Merge branch 'jt/subprocess-handshake' into maint
Code cleanup. * jt/subprocess-handshake: sub-process: refactor handshake to common function Documentation: migrate sub-process docs to header convert: add "status=delayed" to filter process protocol convert: refactor capabilities negotiation convert: move multiple file filter error handling to separate function convert: put the flags field before the flag itself for consistent style t0021: write "OUT <size>" only on success t0021: make debug log file name configurable t0021: keep filter log files on comparison
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index dd535bc84..862cfce66 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -380,6 +380,7 @@ static int check_updates(struct unpack_trees_options *o)
if (should_update_submodules() && o->update && !o->dry_run)
reload_gitmodules_file(index, &state);
+ enable_delayed_checkout(&state);
for (i = 0; i < index->cache_nr; i++) {
struct cache_entry *ce = index->cache[i];
@@ -394,6 +395,7 @@ static int check_updates(struct unpack_trees_options *o)
}
}
}
+ errs |= finish_delayed_checkout(&state);
stop_progress(&progress);
if (o->update)
git_attr_set_direction(GIT_ATTR_CHECKIN, NULL);