Skip to content

Commit 9affca1

Browse files
fix: arguments order for checkout command (#1368)
1 parent 729e06d commit 9affca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/Checkout.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public bool Branch(string branch, string basedOn, bool force, bool allowOverwrit
2727
{
2828
var builder = new StringBuilder();
2929
builder.Append("checkout --progress ");
30-
builder.Append(allowOverwrite ? "-B " : "-b ");
3130
if (force)
3231
builder.Append("--force ");
32+
builder.Append(allowOverwrite ? "-B " : "-b ");
3333
builder.Append(branch);
3434
builder.Append(" ");
3535
builder.Append(basedOn);

0 commit comments

Comments
 (0)