builtin/branch: strip refs/heads/ using skip_prefix
[gitweb.git] / branch.c
index 62f7b0d8c2d6a89fde5abffb6c836d0ce7706ac4..bd607ae979f6c0a1b93ee89a0facdd818ea64e64 100644 (file)
--- a/branch.c
+++ b/branch.c
@@ -228,7 +228,7 @@ N_("\n"
 "\"git push -u\" to set the upstream config as you push.");
 
 void create_branch(const char *name, const char *start_name,
-                  int force, int reflog, int clobber_head,
+                  int force, int clobber_head_ok, int reflog,
                   int quiet, enum branch_track track)
 {
        struct commit *commit;
@@ -244,7 +244,7 @@ void create_branch(const char *name, const char *start_name,
 
        if (validate_new_branchname(name, &ref, force,
                                    track == BRANCH_TRACK_OVERRIDE ||
-                                   clobber_head)) {
+                                   clobber_head_ok)) {
                if (!force)
                        dont_change_ref = 1;
                else