Skip to content

Commit

Permalink
fix: address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mgattozzi committed May 9, 2024
1 parent e4e6c23 commit cc863df
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cli/src/commands/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ By default, pushes any branches pointing to `remote_branches(remote=<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`
Expand Down
7 changes: 0 additions & 7 deletions cli/tests/test_git_push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
&[
Expand Down

0 comments on commit cc863df

Please sign in to comment.