diff --git a/cli/src/commands/git.rs b/cli/src/commands/git.rs index 19ef027bf6..457855059e 100644 --- a/cli/src/commands/git.rs +++ b/cli/src/commands/git.rs @@ -220,7 +220,7 @@ pub struct GitPushArgs { /// correspond to missing local branches. #[arg(long)] deleted: bool, - /// Push branches that contain empty descriptions + /// Push branches with commits that contain empty descriptions #[arg(long)] allow_empty_description: bool, /// Push branches pointing to these commits (can be repeated) diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index 38e4a9d991..08ea09c120 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -930,7 +930,7 @@ By default, pushes any branches pointing to `remote_branches(remote=)..@ Possible values: `true`, `false` -* `--allow-empty-description` — Push branches that contain empty descriptions +* `--allow-empty-description` — Push branches with commits that contain empty descriptions Possible values: `true`, `false` diff --git a/cli/tests/test_git_push.rs b/cli/tests/test_git_push.rs index 59b0088cc7..65e2a568e5 100644 --- a/cli/tests/test_git_push.rs +++ b/cli/tests/test_git_push.rs @@ -642,13 +642,6 @@ fn test_git_push_no_description() { insta::assert_snapshot!(stderr, @r###" Error: Won't push commit 5b36783cd11c since it has no description "###); -} - -#[test] -fn test_git_allow_push_no_description() { - let (test_env, workspace_root) = set_up(); - test_env.jj_cmd_ok(&workspace_root, &["branch", "create", "my-branch"]); - test_env.jj_cmd_ok(&workspace_root, &["describe", "-m="]); test_env.jj_cmd_ok( &workspace_root, &[