From 98412e13f5e9574c34e7a2ce19b112ffa130f2df Mon Sep 17 00:00:00 2001 From: Elian Date: Mon, 23 Jun 2025 14:56:28 -0700 Subject: [PATCH] rm loose string --- go/libraries/doltcore/sqle/dprocedures/dolt_checkout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/libraries/doltcore/sqle/dprocedures/dolt_checkout.go b/go/libraries/doltcore/sqle/dprocedures/dolt_checkout.go index 53b0857ec5..65e9153df1 100644 --- a/go/libraries/doltcore/sqle/dprocedures/dolt_checkout.go +++ b/go/libraries/doltcore/sqle/dprocedures/dolt_checkout.go @@ -163,7 +163,7 @@ func doDoltCheckout(ctx *sql.Context, args []string) (statusCode int, successMes } validRemoteRefExists := remoteRefs != nil && len(remoteRefs) >= 1 - `` + if dashDashPos == 1 && (localRefExists || validRemoteRefExists) { // dolt checkout --: disambiguates a tracking branch when it shares a name with local table(s). if apr.NArg() == 1 { // assume some specified because dashDashPos is 1