jj/cli/tests
Baltasar Dinis 4e5260dad2 git: detect remote refusal of a push
When we push a ref to a git remote, we use --force-with-lease
Our understanding was that this could fail iff the expected location of
the ref on the remote was not that of the local tracking ref

However, if the ref is from a protected branch (e.g., main) it will be
rejected by the remote for a different reason.

This commit solves this, by detecting this difference.
2025-03-14 08:09:37 +00:00
..
common cli: config {edit,set,unset}: prompt when multiple files exist 2025-03-13 03:51:52 +00:00
cli-reference@.md.snap cli: config list: show origin of config values 2025-03-13 23:59:45 +00:00
runner.rs git: remove .gitmodules parsing code 2025-03-11 02:37:13 +00:00
test_abandon_command.rs tests: use TestWorkDir in test_abandon_command.rs 2025-03-11 01:23:13 +00:00
test_absorb_command.rs tests: port test_absorb_command.rs to TestWorkDir API, add read_file() helper 2025-03-12 02:18:56 +00:00
test_acls.rs tests: port test_acls.rs to TestWorkDir API 2025-03-12 02:18:56 +00:00
test_advance_bookmarks.rs tests: port test_advance_bookmarks.rs to TestWorkDir API 2025-03-12 02:18:56 +00:00
test_alias.rs cli clone and init: remove unhelpful parts of clap error 2025-03-12 04:02:52 +00:00
test_backout_command.rs tests: port test_backout_command.rs to TestWorkDir API 2025-03-12 02:18:56 +00:00
test_bookmark_command.rs cli string patterns: explain case-insensitive string prefixes 2025-03-12 03:09:03 +00:00
test_builtin_aliases.rs tests: port test_builtin_aliases.rs to TestWorkDir API 2025-03-13 03:45:45 +00:00
test_commit_command.rs tests: port test_commit_command.rs to TestWorkDir API 2025-03-13 03:45:45 +00:00
test_commit_template.rs tests: port test_commit_template.rs to TestWorkDir API 2025-03-13 03:45:45 +00:00
test_completion.rs cli: config list: show origin of config values 2025-03-13 23:59:45 +00:00
test_concurrent_operations.rs tests: port test_concurrent_operations.rs to TestWorkDir API 2025-03-13 16:13:12 +00:00
test_config_command.rs cli: config list: show origin of config values 2025-03-13 23:59:45 +00:00
test_config_schema.rs config-schema: validate default configs in tests with taplo 2025-02-14 04:17:37 +00:00
test_copy_detection.rs tests: port test_copy_detection.rs to TestWorkDir API 2025-03-13 16:13:12 +00:00
test_debug_command.rs tests: port test_debug_command.rs to TestWorkDir API 2025-03-13 16:13:12 +00:00
test_debug_init_local_command.rs debug init-local: remove the ui.allow-init-native option 2025-03-05 05:52:02 +00:00
test_describe_command.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00
test_diff_command.rs cli: diff: support multiple revisions to -r 2025-03-11 06:27:51 +00:00
test_diffedit_command.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00
test_duplicate_command.rs tests: move current_operation_id() to TestWorkDir 2025-03-11 01:23:13 +00:00
test_edit_command.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_evolog_command.rs cli: config list: show origin of config values 2025-03-13 23:59:45 +00:00
test_file_annotate_command.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_file_chmod_command.rs tests: pass &TestWorkDir to create_commit*() helper 2025-03-11 01:23:13 +00:00
test_file_show_command.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_file_track_untrack_commands.rs cli: remove untrack subcommand 2025-03-07 11:00:08 +00:00
test_fix_command.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00
test_generate_md_cli_help.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_git_clone.rs cli/tests: port test_git_clone to gitoxide 2025-03-05 05:39:19 +00:00
test_git_colocated.rs git: add test for Git state clean‐up 2025-03-11 03:09:13 +00:00
test_git_fetch.rs tests: move current_operation_id() to TestWorkDir 2025-03-11 01:23:13 +00:00
test_git_import_export.rs git: use translated remote symbols in import_refs() 2025-03-12 02:20:00 +00:00
test_git_init.rs cli/tests: have clone helper take in a remote name 2025-03-05 05:39:19 +00:00
test_git_private_commits.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_git_push.rs git: detect remote refusal of a push 2025-03-14 08:09:37 +00:00
test_git_remotes.rs git: port remote management to gix 2025-03-09 21:17:10 +00:00
test_gitignores.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_global_opts.rs tests: add workspace test helper, use it in test_global_opts.rs 2025-03-10 07:50:18 +00:00
test_help_command.rs cli: reimplement "jj revert" stub as error hint 2025-03-05 05:22:51 +00:00
test_immutable_commits.rs cli: remove unsquash subcommand 2025-03-07 01:46:19 +00:00
test_interdiff_command.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_log_command.rs cli: config list: show origin of config values 2025-03-13 23:59:45 +00:00
test_new_command.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00
test_next_prev_commands.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_operations.rs cli: config list: show origin of config values 2025-03-13 23:59:45 +00:00
test_parallelize_command.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_rebase_command.rs tests: move current_operation_id() to TestWorkDir 2025-03-11 01:23:13 +00:00
test_repo_change_report.rs config: Allow hiding the 'how to resolve conflicts' hint 2025-03-06 10:49:54 +00:00
test_resolve_command.rs tests: pass &TestWorkDir to create_commit*() helper 2025-03-11 01:23:13 +00:00
test_restore_command.rs tests: pass &TestWorkDir to create_commit*() helper 2025-03-11 01:23:13 +00:00
test_revset_output.rs cli string patterns: explain case-insensitive string prefixes 2025-03-12 03:09:03 +00:00
test_root.rs tests: migrate unusual users of jj_cmd_success() to run_jj_in/with() 2025-02-23 13:34:17 +00:00
test_shell_completion.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_show_command.rs cli: config list: show origin of config values 2025-03-13 23:59:45 +00:00
test_sign_unsign_commands.rs sign: add --key argument to jj sign 2025-02-28 07:52:57 +00:00
test_simplify_parents_command.rs tests: move current_operation_id() to TestWorkDir 2025-03-11 01:23:13 +00:00
test_sparse_command.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00
test_split_command.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00
test_squash_command.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00
test_status_command.rs tests: pass &TestWorkDir to create_commit*() helper 2025-03-11 01:23:13 +00:00
test_tag_command.rs tests: resolve directory path to run_jj_in() relative to env_root 2025-02-25 15:40:14 +00:00
test_templater.rs cli: config list: show origin of config values 2025-03-13 23:59:45 +00:00
test_undo.rs tests: move current_operation_id() to TestWorkDir 2025-03-11 01:23:13 +00:00
test_util_command.rs tests: move current_operation_id() to TestWorkDir 2025-03-11 01:23:13 +00:00
test_working_copy.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00
test_workspaces.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00