Merge branch 'ci/forbid-unwanted-current-branch-update'
* ci/forbid-unwanted-current-branch-update: branch --set-upstream: regression fix
This commit is contained in:
@ -1073,7 +1073,8 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
|
||||
if (opts.new_branch) {
|
||||
struct strbuf buf = STRBUF_INIT;
|
||||
|
||||
opts.branch_exists = validate_new_branchname(opts.new_branch, &buf, !!opts.new_branch_force);
|
||||
opts.branch_exists = validate_new_branchname(opts.new_branch, &buf,
|
||||
!!opts.new_branch_force, 0);
|
||||
|
||||
strbuf_release(&buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user