diff --git a/builtin/checkout.c b/builtin/checkout.c index 29aa8f0dfc0782..7f579ab99eb60a 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -1039,8 +1039,11 @@ static void update_refs_for_switch(const struct checkout_opts *opts, strbuf_release(&msg); if (!opts->quiet && !opts->force_detach && - (new_branch_info->path || !strcmp(new_branch_info->name, "HEAD"))) + (new_branch_info->path || !strcmp(new_branch_info->name, "HEAD"))) { + trace2_region_enter("exp", "report_tracking", the_repository); report_tracking(new_branch_info); + trace2_region_leave("exp", "report_tracking", the_repository); + } } static int add_pending_uninteresting_ref(const char *refname,