create_branch: drop unused "head" parameter
[git/git.git] / builtin / checkout.c
index d3b2968..d561f74 100644 (file)
@@ -628,7 +628,7 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
                        }
                }
                else
-                       create_branch(old->name, opts->new_branch, new->name,
+                       create_branch(opts->new_branch, new->name,
                                      opts->new_branch_force ? 1 : 0,
                                      opts->new_branch_log,
                                      opts->new_branch_force ? 1 : 0,