docs/pretty-formats: fix typo '% <(<N>)' -> '%<|(<N>)'
[gitweb.git] / builtin / checkout.c
index 32cf317ec244f0f08d2a2174e3e5b6279cde5b85..899bd8db0b50d8d8a1cb00a9432692d9b898980d 100644 (file)
@@ -631,7 +631,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,