diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index 8887c8176..58d29afc3 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -1403,7 +1403,7 @@ See https://github.com/martinvonz/jj/blob/main/docs/working-copy.md#stale-workin ui.warning(), r#"Name and email not configured. Until configured, your commits will be created with the empty identity, and can't be pushed to remotes. To configure, run: jj config set --user user.name "Some One" - jj config set --user user.email someone@example.com""# + jj config set --user user.email "someone@example.com""# )?; } Ok(()) diff --git a/cli/tests/test_global_opts.rs b/cli/tests/test_global_opts.rs index b511da491..ed775d4d0 100644 --- a/cli/tests/test_global_opts.rs +++ b/cli/tests/test_global_opts.rs @@ -391,7 +391,7 @@ fn test_no_user_configured() { insta::assert_snapshot!(get_stderr_string(&assert), @r###" Name and email not configured. Until configured, your commits will be created with the empty identity, and can't be pushed to remotes. To configure, run: jj config set --user user.name "Some One" - jj config set --user user.email someone@example.com" + jj config set --user user.email "someone@example.com" "###); let assert = test_env .jj_cmd(&repo_path, &["describe", "-m", "without email"]) @@ -401,7 +401,7 @@ fn test_no_user_configured() { insta::assert_snapshot!(get_stderr_string(&assert), @r###" Name and email not configured. Until configured, your commits will be created with the empty identity, and can't be pushed to remotes. To configure, run: jj config set --user user.name "Some One" - jj config set --user user.email someone@example.com" + jj config set --user user.email "someone@example.com" "###); }