Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
feat: add remote_repo variable (#3745)
Caleb Coxaa9d8c43df80
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 062a67364..2bfa983a0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,11 @@# Changelog+## Unreleased++### Improved++- **`remote_repo` names the repository as the remote spells it**: `repo` is the directory on disk, so a renamed clone reports the new name. `{{ remote_repo }}` takes it from the primary remote's URL, available everywhere `owner` is and unset when no remote parses. ([#3745](https://github.com/max-sixty/worktrunk/pull/3745), thanks @canac)+## 0.73.0### Fixeddiff --git a/dev/config.example.toml b/dev/config.example.tomlindex 95e8edb4a..5cb65a855 100644--- a/dev/config.example.toml+++ b/dev/config.example.toml@@ -16,6 +16,7 @@# - `{{ repo_path }}` — absolute path to the repository root (e.g., `/Users/me/code/myproject`. Or for bare repos, the bare directory itself)# - `{{ repo }}` — repository directory name (e.g., `myproject`)# - `{{ owner }}` — primary remote owner path (may include subgroups like `group/subgroup`)+# - `{{ remote_repo }}` — repository name in the primary remote URL, without `.git` (e.g., `myproject`); differs from `{{ repo }}`, the directory on disk, when a clone was renamed# - `{{ branch }}` — raw branch name (e.g., `feature/auth`)# - `{{ branch | sanitize }}` — filesystem-safe: `/` and `\` become `-` (e.g., `feature-auth`)# - `{{ branch | sanitize_db }}` — database-safe: lowercase, underscores, hash suffix (e.g., `feature_auth_x7k`)diff --git a/docs/content/config.md b/docs/content/config.mdindex 3843c007e..cac68812d 100644--- a/docs/content/config.md+++ b/docs/content/config.md@@ -78,6 +78,7 @@ Controls where new worktrees are created.- `{{ repo_path }}` — absolute path to the repository root (e.g., `/Users/me/code/myproject`. Or for bare repos, the bare directory itself)- `{{ repo }}` — repository directory name (e.g., `myproject`)- `{{ owner }}` — primary remote owner path (may include subgroups like `group/subgroup`)+- `{{ remote_repo }}` — repository name in the primary remote URL, without `.git` (e.g., `myproject`); differs from `{{ repo }}`, the directory on disk, when a clone was renamed- `{{ branch }}` — raw branch name (e.g., `feature/auth`)- `{{ branch | sanitize }}` — filesystem-safe: `/` and `\` become `-` (e.g., `feature-auth`)- `{{ branch | sanitize_db }}` — database-safe: lowercase, underscores, hash suffix (e.g., `feature_auth_x7k`)diff --git a/docs/content/hook.md b/docs/content/hook.mdindex df00c75ce..37cd2263e 100644--- a/docs/content/hook.md+++ b/docs/content/hook.md@@ -138,6 +138,7 @@ Hooks can use template variables that expand at runtime:| repo | `{{ repo }}` | Repository directory name || | `{{ repo_path }}` | Absolute path to repository root || | `{{ owner }}` | Primary remote owner path (may include subgroups) |+| | `{{ remote_repo }}` | Repository name from the primary remote URL, without `.git` || | `{{ primary_worktree_path }}` | Primary worktree path || | `{{ default_branch }}` | Default branch name || | `{{ remote }}` | Primary remote name |@@ -148,7 +149,7 @@ Hooks can use template variables that expand at runtime:| | `{{ args }}` | Tokens forwarded from the CLI — see [Running Hooks Manually](#running-hooks-manually) || user | `{{ vars.<key> }}` | Per-branch variables from [`wt config state vars`](@/config.md#wt-config-state-vars) |-The `repo` variables (`repo`, `repo_path`, `owner`, `primary_worktree_path`, `default_branch`, `remote`, `remote_url`) are constant across the whole repository — `default_branch` is the same in every worktree. The `active` variables (`branch`, `worktree_path`, `worktree_name`, `commit`, `short_commit`, `upstream`) vary per worktree.+The `repo` variables (`repo`, `repo_path`, `owner`, `remote_repo`, `primary_worktree_path`, `default_branch`, `remote`, `remote_url`) are constant across the whole repository — `default_branch` is the same in every worktree. The `active` variables (`branch`, `worktree_path`, `worktree_name`, `commit`, `short_commit`, `upstream`) vary per worktree.Bare variables (`branch`, `worktree_path`, `commit`) refer to the branch the operation acts on: the destination for switch/create, the source for merge/remove. `base` and `target` give the other side:diff --git a/plugins/worktrunk/skills/worktrunk/reference/config.md b/plugins/worktrunk/skills/worktrunk/reference/config.mdindex 0413ba8c7..f4641dbe2 100644--- a/plugins/worktrunk/skills/worktrunk/reference/config.md+++ b/plugins/worktrunk/skills/worktrunk/reference/config.md@@ -77,6 +77,7 @@ Controls where new worktrees are created.- `{{ repo_path }}` — absolute path to the repository root (e.g., `/Users/me/code/myproject`. Or for bare repos, the bare directory itself)- `{{ repo }}` — repository directory name (e.g., `myproject`)- `{{ owner }}` — primary remote owner path (may include subgroups like `group/subgroup`)+- `{{ remote_repo }}` — repository name in the primary remote URL, without `.git` (e.g., `myproject`); differs from `{{ repo }}`, the directory on disk, when a clone was renamed- `{{ branch }}` — raw branch name (e.g., `feature/auth`)- `{{ branch | sanitize }}` — filesystem-safe: `/` and `\` become `-` (e.g., `feature-auth`)- `{{ branch | sanitize_db }}` — database-safe: lowercase, underscores, hash suffix (e.g., `feature_auth_x7k`)diff --git a/plugins/worktrunk/skills/worktrunk/reference/hook.md b/plugins/worktrunk/skills/worktrunk/reference/hook.mdindex 9e4fc8143..82f2b5354 100644--- a/plugins/worktrunk/skills/worktrunk/reference/hook.md+++ b/plugins/worktrunk/skills/worktrunk/reference/hook.md@@ -129,6 +129,7 @@ Hooks can use template variables that expand at runtime:| repo | `{{ repo }}` | Repository directory name || | `{{ repo_path }}` | Absolute path to repository root || | `{{ owner }}` | Primary remote owner path (may include subgroups) |+| | `{{ remote_repo }}` | Repository name from the primary remote URL, without `.git` || | `{{ primary_worktree_path }}` | Primary worktree path || | `{{ default_branch }}` | Default branch name || | `{{ remote }}` | Primary remote name |@@ -139,7 +140,7 @@ Hooks can use template variables that expand at runtime:| | `{{ args }}` | Tokens forwarded from the CLI — see [Running Hooks Manually](#running-hooks-manually) || user | `{{ vars.<key> }}` | Per-branch variables from [`wt config state vars`](https://worktrunk.dev/config/#wt-config-state-vars) |-The `repo` variables (`repo`, `repo_path`, `owner`, `primary_worktree_path`, `default_branch`, `remote`, `remote_url`) are constant across the whole repository — `default_branch` is the same in every worktree. The `active` variables (`branch`, `worktree_path`, `worktree_name`, `commit`, `short_commit`, `upstream`) vary per worktree.+The `repo` variables (`repo`, `repo_path`, `owner`, `remote_repo`, `primary_worktree_path`, `default_branch`, `remote`, `remote_url`) are constant across the whole repository — `default_branch` is the same in every worktree. The `active` variables (`branch`, `worktree_path`, `worktree_name`, `commit`, `short_commit`, `upstream`) vary per worktree.Bare variables (`branch`, `worktree_path`, `commit`) refer to the branch the operation acts on: the destination for switch/create, the source for merge/remove. `base` and `target` give the other side:diff --git a/skills/worktrunk/reference/config.md b/skills/worktrunk/reference/config.mdindex 0413ba8c7..f4641dbe2 100644--- a/skills/worktrunk/reference/config.md+++ b/skills/worktrunk/reference/config.md@@ -77,6 +77,7 @@ Controls where new worktrees are created.- `{{ repo_path }}` — absolute path to the repository root (e.g., `/Users/me/code/myproject`. Or for bare repos, the bare directory itself)- `{{ repo }}` — repository directory name (e.g., `myproject`)- `{{ owner }}` — primary remote owner path (may include subgroups like `group/subgroup`)+- `{{ remote_repo }}` — repository name in the primary remote URL, without `.git` (e.g., `myproject`); differs from `{{ repo }}`, the directory on disk, when a clone was renamed- `{{ branch }}` — raw branch name (e.g., `feature/auth`)- `{{ branch | sanitize }}` — filesystem-safe: `/` and `\` become `-` (e.g., `feature-auth`)- `{{ branch | sanitize_db }}` — database-safe: lowercase, underscores, hash suffix (e.g., `feature_auth_x7k`)diff --git a/skills/worktrunk/reference/hook.md b/skills/worktrunk/reference/hook.mdindex 9e4fc8143..82f2b5354 100644--- a/skills/worktrunk/reference/hook.md+++ b/skills/worktrunk/reference/hook.md@@ -129,6 +129,7 @@ Hooks can use template variables that expand at runtime:| repo | `{{ repo }}` | Repository directory name || | `{{ repo_path }}` | Absolute path to repository root || | `{{ owner }}` | Primary remote owner path (may include subgroups) |+| | `{{ remote_repo }}` | Repository name from the primary remote URL, without `.git` || | `{{ primary_worktree_path }}` | Primary worktree path || | `{{ default_branch }}` | Default branch name || | `{{ remote }}` | Primary remote name |@@ -139,7 +140,7 @@ Hooks can use template variables that expand at runtime:| | `{{ args }}` | Tokens forwarded from the CLI — see [Running Hooks Manually](#running-hooks-manually) || user | `{{ vars.<key> }}` | Per-branch variables from [`wt config state vars`](https://worktrunk.dev/config/#wt-config-state-vars) |-The `repo` variables (`repo`, `repo_path`, `owner`, `primary_worktree_path`, `default_branch`, `remote`, `remote_url`) are constant across the whole repository — `default_branch` is the same in every worktree. The `active` variables (`branch`, `worktree_path`, `worktree_name`, `commit`, `short_commit`, `upstream`) vary per worktree.+The `repo` variables (`repo`, `repo_path`, `owner`, `remote_repo`, `primary_worktree_path`, `default_branch`, `remote`, `remote_url`) are constant across the whole repository — `default_branch` is the same in every worktree. The `active` variables (`branch`, `worktree_path`, `worktree_name`, `commit`, `short_commit`, `upstream`) vary per worktree.Bare variables (`branch`, `worktree_path`, `commit`) refer to the branch the operation acts on: the destination for switch/create, the source for merge/remove. `base` and `target` give the other side:diff --git a/src/cli/mod.rs b/src/cli/mod.rsindex c84b0f7f9..29c174ee6 100644--- a/src/cli/mod.rs+++ b/src/cli/mod.rs@@ -1672,6 +1672,7 @@ Hooks can use template variables that expand at runtime:| repo | `{{ repo }}` | Repository directory name || | `{{ repo_path }}` | Absolute path to repository root || | `{{ owner }}` | Primary remote owner path (may include subgroups) |+| | `{{ remote_repo }}` | Repository name from the primary remote URL, without `.git` || | `{{ primary_worktree_path }}` | Primary worktree path || | `{{ default_branch }}` | Default branch name || | `{{ remote }}` | Primary remote name |@@ -1682,7 +1683,7 @@ Hooks can use template variables that expand at runtime:| | `{{ args }}` | Tokens forwarded from the CLI — see [Running Hooks Manually](#running-hooks-manually) || user | `{{ vars.<key> }}` | Per-branch variables from [`wt config state vars`](@/config.md#wt-config-state-vars) |-The `repo` variables (`repo`, `repo_path`, `owner`, `primary_worktree_path`, `default_branch`, `remote`, `remote_url`) are constant across the whole repository — `default_branch` is the same in every worktree. The `active` variables (`branch`, `worktree_path`, `worktree_name`, `commit`, `short_commit`, `upstream`) vary per worktree.+The `repo` variables (`repo`, `repo_path`, `owner`, `remote_repo`, `primary_worktree_path`, `default_branch`, `remote`, `remote_url`) are constant across the whole repository — `default_branch` is the same in every worktree. The `active` variables (`branch`, `worktree_path`, `worktree_name`, `commit`, `short_commit`, `upstream`) vary per worktree.Bare variables (`branch`, `worktree_path`, `commit`) refer to the branch the operation acts on: the destination for switch/create, the source for merge/remove. `base` and `target` give the other side:@@ -1968,6 +1969,7 @@ Controls where new worktrees are created.- `{{ repo_path }}` — absolute path to the repository root (e.g., `/Users/me/code/myproject`. Or for bare repos, the bare directory itself)- `{{ repo }}` — repository directory name (e.g., `myproject`)- `{{ owner }}` — primary remote owner path (may include subgroups like `group/subgroup`)+- `{{ remote_repo }}` — repository name in the primary remote URL, without `.git` (e.g., `myproject`); differs from `{{ repo }}`, the directory on disk, when a clone was renamed- `{{ branch }}` — raw branch name (e.g., `feature/auth`)- `{{ branch | sanitize }}` — filesystem-safe: `/` and `\` become `-` (e.g., `feature-auth`)- `{{ branch | sanitize_db }}` — database-safe: lowercase, underscores, hash suffix (e.g., `feature_auth_x7k`)diff --git a/src/commands/command_executor.rs b/src/commands/command_executor.rsindex 22d1ce2c0..ab1c5741b 100644--- a/src/commands/command_executor.rs+++ b/src/commands/command_executor.rs@@ -291,6 +291,7 @@ pub fn build_hook_context(if let Some(parsed_remote) = ctx.repo.primary_remote_parsed_url() {map.insert("owner".into(), parsed_remote.owner().to_string());+ map.insert("remote_repo".into(), parsed_remote.repo().to_string());}// Default branchdiff --git a/src/config/expansion.rs b/src/config/expansion.rsindex c8eb2808a..aa9ac3e6c 100644--- a/src/config/expansion.rs+++ b/src/config/expansion.rs@@ -51,6 +51,7 @@ pub const REPO_VARS: &[&str] = &["repo","repo_path","owner",+ "remote_repo","primary_worktree_path","default_branch","remote",@@ -2945,6 +2946,20 @@ mod tests {.is_ok());+ // Remote-derived repo vars validate in every scope+ assert!(+ validate_template("{{ owner }}/{{ remote_repo }}", hook, &test.repo, "test").is_ok()+ );+ assert!(+ validate_template(+ "{{ remote_repo }}",+ ValidationScope::Alias,+ &test.repo,+ "test"+ )+ .is_ok()+ );+// Deprecated vars still valid in every scopeassert!(validate_template("{{ main_worktree }}", hook, &test.repo, "test").is_ok());@@ -3169,6 +3184,7 @@ mod tests {repo = demorepo_path = /tmp/demoowner = (unset)+ remote_repo = (unset)primary_worktree_path = (unset)default_branch = (unset)remote = (unset)diff --git a/src/config/user/accessors.rs b/src/config/user/accessors.rsindex ec27b9057..bbb828b67 100644--- a/src/config/user/accessors.rs+++ b/src/config/user/accessors.rs@@ -233,7 +233,7 @@ impl UserConfig {/// `{{ main_worktree }}` and `{{ repo }}`/// * `branch` - Branch name (replaces {{ branch }} in template; use `{{ branch | sanitize }}` for paths)/// * `repo` - Repository, for template function access and for the- /// `{{ repo_path }}` and `{{ owner }}` values read off it —+ /// `{{ repo_path }}`, `{{ owner }}`, and {{ remote_repo }} values read off it —/// `{{ owner }}` is absent when the primary remote has no parseable URL/// * `project` - Optional project identifier (e.g., "github.com/user/repo") to look up/// project-specific worktree-path template@@ -259,11 +259,10 @@ impl UserConfig {vars.insert("repo", main_worktree);vars.insert("branch", branch);vars.insert("repo_path", repo_path.as_str());- let owner = repo- .primary_remote_parsed_url()- .map(|parsed_remote| parsed_remote.owner().to_string());- if let Some(ref owner) = owner {- vars.insert("owner", owner.as_str());+ let parsed_remote = repo.primary_remote_parsed_url();+ if let Some(ref parsed_remote) = parsed_remote {+ vars.insert("owner", parsed_remote.owner());+ vars.insert("remote_repo", parsed_remote.repo());}Ok(expand_template(&template,diff --git a/src/config/user/tests.rs b/src/config/user/tests.rsindex dd3830486..ca84ab397 100644--- a/src/config/user/tests.rs+++ b/src/config/user/tests.rs@@ -447,6 +447,29 @@ fn test_worktrunk_config_format_path_owner_variable() {assert_eq!(path, "max-sixty/myrepo/feature/branch");}+#[test]+fn test_worktrunk_config_format_path_remote_repo_variable() {+ let mut test = TestRepo::with_initial_commit();+ test.setup_remote("main");+ test.run_git(&[+ "remote",+ "set-url",+ "origin",+ "[email protected]:company-org/project.git",+ ]);++ let config = UserConfig {+ worktree_path: Some("{{ remote_repo }}/{{ repo }}/{{ branch }}".to_string()),+ ..Default::default()+ };++ let path = config+ .format_path("myrepo", "feature/branch", &test.repo, None)+ .unwrap();++ assert_eq!(path, "project/myrepo/feature/branch");+}+#[test]fn test_worktrunk_config_format_path_owner_uses_full_namespace() {let mut test = TestRepo::with_initial_commit();diff --git a/tests/integration_tests/eval.rs b/tests/integration_tests/eval.rsindex 85815b321..8544b8d2a 100644--- a/tests/integration_tests/eval.rs+++ b/tests/integration_tests/eval.rs@@ -117,6 +117,32 @@ fn test_eval_owner(repo: TestRepo) {);}+#[rstest]+fn test_eval_remote_repo(repo: TestRepo) {+ repo.run_git(&[+ "remote",+ "set-url",+ "origin",+ "[email protected]:company-org/project.git",+ ]);++ let output = repo+ .wt_command()+ .args(["step", "eval", "{{ remote_repo }}/{{ repo }}"])+ .output()+ .expect("Failed to run wt step eval");++ assert!(+ output.status.success(),+ "wt step eval should succeed, stderr: {}",+ String::from_utf8_lossy(&output.stderr)+ );+ assert_eq!(+ String::from_utf8_lossy(&output.stdout).trim(),+ "project/repo"+ );+}+#[rstest]fn test_eval_conditional(repo: TestRepo) {assert_cmd_snapshot!(make_snapshot_cmd(diff --git a/tests/snapshots/integration__integration_tests__eval__eval_format_json_verbose.snap b/tests/snapshots/integration__integration_tests__eval__eval_format_json_verbose.snapindex 8603a78d8..fbe74292a 100644--- a/tests/snapshots/integration__integration_tests__eval__eval_format_json_verbose.snap+++ b/tests/snapshots/integration__integration_tests__eval__eval_format_json_verbose.snap@@ -66,6 +66,7 @@ exit_code: 0[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m owner = (unset)+[107m [0m remote_repo = (unset)[107m [0m primary_worktree_path = _REPO_[107m [0m default_branch = main[107m [0m remote = origindiff --git a/tests/snapshots/integration__integration_tests__eval__eval_verbose.snap b/tests/snapshots/integration__integration_tests__eval__eval_verbose.snapindex 9e2693dfc..652030bfc 100644--- a/tests/snapshots/integration__integration_tests__eval__eval_verbose.snap+++ b/tests/snapshots/integration__integration_tests__eval__eval_verbose.snap@@ -61,6 +61,7 @@ exit_code: 0[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m owner = (unset)+[107m [0m remote_repo = (unset)[107m [0m primary_worktree_path = _REPO_[107m [0m default_branch = main[107m [0m remote = origindiff --git a/tests/snapshots/integration__integration_tests__help__help_config_create.snap b/tests/snapshots/integration__integration_tests__help__help_config_create.snapindex f230a09de..b71977dd1 100644--- a/tests/snapshots/integration__integration_tests__help__help_config_create.snap+++ b/tests/snapshots/integration__integration_tests__help__help_config_create.snap@@ -92,6 +92,7 @@ Creates [2m~/.config/worktrunk/config.toml[0m with the following content:[107m [0m [2m# - `{{ repo_path }}` — absolute path to the repository root (e.g., `/Users/me/code/myproject`. Or for bare repos, the bare directory itself)[0m[107m [0m [2m# - `{{ repo }}` — repository directory name (e.g., `myproject`)[0m[107m [0m [2m# - `{{ owner }}` — primary remote owner path (may include subgroups like `group/subgroup`)[0m+[107m [0m [2m# - `{{ remote_repo }}` — repository name in the primary remote URL, without `.git` (e.g., `myproject`); differs from `{{ repo }}`, the directory on disk, when a clone was renamed[0m[107m [0m [2m# - `{{ branch }}` — raw branch name (e.g., `feature/auth`)[0m[107m [0m [2m# - `{{ branch | sanitize }}` — filesystem-safe: `/` and `\` become `-` (e.g., `feature-auth`)[0m[107m [0m [2m# - `{{ branch | sanitize_db }}` — database-safe: lowercase, underscores, hash suffix (e.g., `feature_auth_x7k`)[0mdiff --git a/tests/snapshots/integration__integration_tests__help__help_config_long.snap b/tests/snapshots/integration__integration_tests__help__help_config_long.snapindex ddf5651a0..012a2dd79 100644--- a/tests/snapshots/integration__integration_tests__help__help_config_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_config_long.snap@@ -140,6 +140,7 @@ Controls where new worktrees are created.- [2m{{ repo_path }}[0m — absolute path to the repository root (e.g., [2m/Users/me/code/myproject[0m. Or for bare repos, the bare directory itself)- [2m{{ repo }}[0m — repository directory name (e.g., [2mmyproject[0m)- [2m{{ owner }}[0m — primary remote owner path (may include subgroups like [2mgroup/subgroup[0m)+- [2m{{ remote_repo }}[0m — repository name in the primary remote URL, without [2m.git[0m (e.g., [2mmyproject[0m); differs from [2m{{ repo }}[0m, the directory on disk, when a clone was renamed- [2m{{ branch }}[0m — raw branch name (e.g., [2mfeature/auth[0m)- [2m{{ branch | sanitize }}[0m — filesystem-safe: [2m/[0m and [2m\[0m become [2m-[0m (e.g., [2mfeature-auth[0m)- [2m{{ branch | sanitize_db }}[0m — database-safe: lowercase, underscores, hash suffix (e.g., [2mfeature_auth_x7k[0m)diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_output.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_output.snapindex 11544a398..31263e3f3 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_output.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_output.snap@@ -74,6 +74,7 @@ exit_code: 0[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m owner = (unset)+[107m [0m remote_repo = (unset)[107m [0m primary_worktree_path = _REPO_[107m [0m default_branch = main[107m [0m remote = origindiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_template_expansion.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_template_expansion.snapindex 7c1cf69dc..1322782ff 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_template_expansion.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_template_expansion.snap@@ -74,6 +74,7 @@ exit_code: 0[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m owner = (unset)+[107m [0m remote_repo = (unset)[107m [0m primary_worktree_path = _REPO_[107m [0m default_branch = main[107m [0m remote = origindiff --git a/tests/snapshots/integration__integration_tests__step_alias__alias_verbose_args_shell_escaped.snap b/tests/snapshots/integration__integration_tests__step_alias__alias_verbose_args_shell_escaped.snapindex ad94886ec..508590705 100644--- a/tests/snapshots/integration__integration_tests__step_alias__alias_verbose_args_shell_escaped.snap+++ b/tests/snapshots/integration__integration_tests__step_alias__alias_verbose_args_shell_escaped.snap@@ -61,6 +61,7 @@ hello foo bar baz[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m [2mowner = (unused)[22m+[107m [0m [2mremote_repo = (unused)[22m[107m [0m [2mprimary_worktree_path = (unused)[22m[107m [0m [2mdefault_branch = (unused)[22m[107m [0m [2mremote = (unused)[22mdiff --git a/tests/snapshots/integration__integration_tests__step_alias__alias_verbose_variable_table.snap b/tests/snapshots/integration__integration_tests__step_alias__alias_verbose_variable_table.snapindex 4a8c793ae..f18903990 100644--- a/tests/snapshots/integration__integration_tests__step_alias__alias_verbose_variable_table.snap+++ b/tests/snapshots/integration__integration_tests__step_alias__alias_verbose_variable_table.snap@@ -60,6 +60,7 @@ hello world[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m [2mowner = (unused)[22m+[107m [0m [2mremote_repo = (unused)[22m[107m [0m [2mprimary_worktree_path = (unused)[22m[107m [0m [2mdefault_branch = (unused)[22m[107m [0m [2mremote = (unused)[22mdiff --git a/tests/snapshots/integration__integration_tests__user_hooks__combined_post_remove_and_post_switch_verbose.snap b/tests/snapshots/integration__integration_tests__user_hooks__combined_post_remove_and_post_switch_verbose.snapindex 8edb1454f..df8f2a859 100644--- a/tests/snapshots/integration__integration_tests__user_hooks__combined_post_remove_and_post_switch_verbose.snap+++ b/tests/snapshots/integration__integration_tests__user_hooks__combined_post_remove_and_post_switch_verbose.snap@@ -65,6 +65,7 @@ exit_code: 0[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m owner = (unset)+[107m [0m remote_repo = (unset)[107m [0m primary_worktree_path = _REPO_[107m [0m default_branch = main[107m [0m remote = origin@@ -88,6 +89,7 @@ exit_code: 0[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m owner = (unset)+[107m [0m remote_repo = (unset)[107m [0m primary_worktree_path = _REPO_[107m [0m default_branch = main[107m [0m remote = origindiff --git a/tests/snapshots/integration__integration_tests__user_hooks__hook_verbose_background_dedup.snap b/tests/snapshots/integration__integration_tests__user_hooks__hook_verbose_background_dedup.snapindex 15804a105..55e6c99e3 100644--- a/tests/snapshots/integration__integration_tests__user_hooks__hook_verbose_background_dedup.snap+++ b/tests/snapshots/integration__integration_tests__user_hooks__hook_verbose_background_dedup.snap@@ -74,6 +74,7 @@ exit_code: 0[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m owner = (unset)+[107m [0m remote_repo = (unset)[107m [0m primary_worktree_path = _REPO_[107m [0m default_branch = main[107m [0m remote = origindiff --git a/tests/snapshots/integration__integration_tests__user_hooks__hook_verbose_variable_table.snap b/tests/snapshots/integration__integration_tests__user_hooks__hook_verbose_variable_table.snapindex 9490531a2..dfbd80f85 100644--- a/tests/snapshots/integration__integration_tests__user_hooks__hook_verbose_variable_table.snap+++ b/tests/snapshots/integration__integration_tests__user_hooks__hook_verbose_variable_table.snap@@ -69,6 +69,7 @@ exit_code: 0[107m [0m repo = repo[107m [0m repo_path = _REPO_[107m [0m owner = (unset)+[107m [0m remote_repo = (unset)[107m [0m primary_worktree_path = _REPO_[107m [0m default_branch = main[107m [0m remote = origin