Merge branch 'ls/p4-empty-file-on-lfs'
[gitweb.git] / builtin / checkout.c
index 9b2a5b31d423ae2f27756df8deab2d9f2fe18ddc..512492aad9099dd2a7aa85391b5c9a8e321c3bfe 100644 (file)
@@ -630,7 +630,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,