Code

Merge branch 'maint-1.7.6' into maint-1.7.7
[git.git] / builtin / branch.c
index aa705a0fb0b7d4cdd0fb29fc4853b8c8c05c625d..f49596f826228e22d354194ddbb73ec100d8728e 100644 (file)
@@ -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);