From c490affcbbbf4314c3fcd017e262a2cca0583665 Mon Sep 17 00:00:00 2001 From: Jason Fulghum Date: Fri, 17 May 2024 11:36:40 -0700 Subject: [PATCH] Changing the command line to identify a valid dolt repository by looking for .dolt/noms instead of just .dolt Related to https://github.com/dolthub/dolt/issues/7873 --- go/cmd/dolt/cli/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/cmd/dolt/cli/command.go b/go/cmd/dolt/cli/command.go index ad929efbe9..753c0907c0 100644 --- a/go/cmd/dolt/cli/command.go +++ b/go/cmd/dolt/cli/command.go @@ -254,7 +254,7 @@ func (hc SubCommandHandler) handleCommand(ctx context.Context, commandStr string // CheckEnvIsValid validates that a DoltEnv has been initialized properly and no errors occur during load, and prints // error messages to the user if there are issues with the environment or if errors were encountered while loading it. func CheckEnvIsValid(dEnv *env.DoltEnv) bool { - if !dEnv.HasDoltDir() { + if !dEnv.HasDoltDataDir() { PrintErrln(color.RedString("The current directory is not a valid dolt repository.")) PrintErrln("run: dolt init before trying to run this command") return false