Merge branch 'gc/branch-recurse-submodules'
"git branch" learned the "--recurse-submodules" option. * gc/branch-recurse-submodules: branch.c: use 'goto cleanup' in setup_tracking() to fix memory leaks branch: add --recurse-submodules option for branch creation builtin/branch: consolidate action-picking logic in cmd_branch() branch: add a dry_run parameter to create_branch() branch: make create_branch() always create a branch branch: move --set-upstream-to behavior to dwim_and_setup_tracking()
This commit is contained in:
@ -909,7 +909,8 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
|
||||
opts->new_branch_force ? 1 : 0,
|
||||
opts->new_branch_log,
|
||||
opts->quiet,
|
||||
opts->track);
|
||||
opts->track,
|
||||
0);
|
||||
free(new_branch_info->name);
|
||||
free(new_branch_info->refname);
|
||||
new_branch_info->name = xstrdup(opts->new_branch);
|
||||
|
Reference in New Issue
Block a user