t/lib-submodule-update.sh: fix test ignoring ignored files in submodules
[gitweb.git] / builtin / checkout.c
index f9f3797e1191291c48609b01cf5c388ff86d0def..8bdc927d3f561e62802ab53be0b3029325e6ebcd 100644 (file)
@@ -647,8 +647,8 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
                else
                        create_branch(opts->new_branch, new->name,
                                      opts->new_branch_force ? 1 : 0,
-                                     opts->new_branch_log,
                                      opts->new_branch_force ? 1 : 0,
+                                     opts->new_branch_log,
                                      opts->quiet,
                                      opts->track);
                new->name = opts->new_branch;