diff --git a/builtin/checkout.c b/builtin/checkout.c
index 3bb652591bb0ee53f2c4d7aed2c32dc480f6e5ae..5e356a6c6178e08b90d992b0eae36048b5d81513 100644 (file)
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
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);
}