diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index 9ebbd614b..a2a6d646d 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -1882,7 +1882,7 @@ fn map_workspace_load_error(err: WorkspaceLoadError, workspace_path: Option<&str message, "It looks like this is a git repo. You can create a jj repo backed by it by \ running this: -jj init --git-repo=.", +jj git init --git-repo=.", ) } else { user_error(message) diff --git a/cli/tests/test_global_opts.rs b/cli/tests/test_global_opts.rs index 4fde6eef1..4d7e10fac 100644 --- a/cli/tests/test_global_opts.rs +++ b/cli/tests/test_global_opts.rs @@ -210,7 +210,7 @@ fn test_no_workspace_directory() { insta::assert_snapshot!(stderr, @r###" Error: There is no jj repo in "." Hint: It looks like this is a git repo. You can create a jj repo backed by it by running this: - jj init --git-repo=. + jj git init --git-repo=. "###); }