From 313670d3c22ee4ddb715cb4e2d736bedcaa4368f Mon Sep 17 00:00:00 2001 From: Benjamin Brittain Date: Wed, 16 Aug 2023 08:45:24 -0400 Subject: [PATCH] Fixed missing quote in "jj config set" help --- cli/src/cli_util.rs | 2 +- cli/tests/test_global_opts.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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" "###); }