Code

Merge branch 'cb/send-email-help'
[git.git] / builtin / checkout.c
index 3bb652591bb0ee53f2c4d7aed2c32dc480f6e5ae..5e356a6c6178e08b90d992b0eae36048b5d81513 100644 (file)
@@ -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);
        }