X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fbranch.c;h=f49596f826228e22d354194ddbb73ec100d8728e;hb=739453a3fb74ade725243ac972f02ba1aedabdf6;hp=aa705a0fb0b7d4cdd0fb29fc4853b8c8c05c625d;hpb=3400c222d9a2dfe8a63684fd47ad5ee7f5d6c4c4;p=git.git diff --git a/builtin/branch.c b/builtin/branch.c index aa705a0fb..f49596f82 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -566,7 +566,7 @@ static void rename_branch(const char *oldname, const char *newname, int force) die(_("Invalid branch name: '%s'"), oldname); } - validate_new_branchname(newname, &newref, force); + validate_new_branchname(newname, &newref, force, 0); strbuf_addf(&logmsg, "Branch: renamed %s to %s", oldref.buf, newref.buf);