diff --git a/builtin/branch.c b/builtin/branch.c
index aa705a0fb0b7d4cdd0fb29fc4853b8c8c05c625d..f49596f826228e22d354194ddbb73ec100d8728e 100644 (file)
--- a/builtin/branch.c
+++ b/builtin/branch.c
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);