Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Fix: Canonicalize worktree path after creation
Maximilian Roos6be6fdcf5acf
diff --git a/src/commands/worktree.rs b/src/commands/worktree.rsindex 68db4a499..1a242a082 100644--- a/src/commands/worktree.rs+++ b/src/commands/worktree.rs@@ -216,6 +216,11 @@ pub fn handle_switch(repo.run_command(&args).map_err(|e| GitError::CommandFailed(format!("Failed to create worktree: {}", e)))?;+ // Canonicalize the path to resolve any .. components+ let worktree_path = worktree_path.canonicalize().map_err(|e| {+ GitError::CommandFailed(format!("Failed to canonicalize worktree path: {}", e))+ })?;+// Execute post-create commands (sequential, blocking)if !no_config_commands {execute_post_create_commands(&worktree_path, &repo, config, branch, force)?;diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snapindex 8eacd5eb3..d4b693051 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp2FHDQQ+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpamoDB5LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -22,7 +22,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snapindex a04840dcd..c04fa1a43 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap@@ -15,7 +15,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpepD9ed+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpt4FzsaLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -24,7 +24,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0m----- stderr -----π [36mStarting (background):[0mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snapindex 44b271507..e21166158 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpaNS7HJ+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpfjVvpPLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -22,7 +22,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snapindex 34cb4b97a..3e2f0f78e 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmppLCTMI+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp4ag1sCLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -24,7 +24,7 @@ exit_code: 0FirstSecondβ [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snapindex 690cee898..2f19beb16 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpTK5nxF+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpF0yY0rLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -24,7 +24,7 @@ exit_code: 0Installing depsRunning setupβ [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_no_config.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_no_config.snapindex 964009365..00a244cc3 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_no_config.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_no_config.snap@@ -21,7 +21,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snapindex 18d4f44b2..3fe0b2525 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpbbCnF2+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpH5dPmlLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -23,7 +23,7 @@ exit_code: 0----- stdout -----Setup completeβ [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snapindex f7bbedf17..b854f6219 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpi51XBI+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpktoojoLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -22,7 +22,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature/test[0m-[2mPath: [REPO]/../test-repo.feature-test[0m[0m+[2mPath: [REPO].feature-test[0m[0mTo enable automatic cd, run: wt configure-shell@@ -32,6 +32,6 @@ To enable automatic cd, run: wt configure-shellπ [36mExecuting (post-create):[0m[40m [0m echo 'Branch: feature-test' >> info.txtπ [36mExecuting (post-create):[0m-[40m [0m echo 'Worktree: [REPO]/../test-repo.feature-test' >> info.txt+[40m [0m echo 'Worktree: [REPO].feature-test' >> info.txtπ [36mExecuting (post-create):[0m[40m [0m echo 'Root: [REPO]' >> info.txtdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snapindex ee89f30e8..b795c8f8e 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpDb2l3t+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpAfBPrgLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -22,7 +22,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snapindex 402786b4f..0b277525d 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpl6nPl8+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpxpAeSjLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -22,7 +22,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snapindex f058dc948..d84c0010c 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpksBqhW+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpbMm4SILANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -22,7 +22,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snapindex be0e33dfa..aad071171 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpr62vYU+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpwVXJeMLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -22,7 +22,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snapindex f0a42948b..d3e8b4a3a 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpactyI0+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpnn4L3YLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -22,7 +22,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snapindex 085c2dede..65d1ac96e 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap@@ -13,7 +13,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpmJSoiD+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpm03kPjLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -22,7 +22,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature[0m-[2mPath: [REPO]/../test-repo.feature[0m[0m+[2mPath: [REPO].feature[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snapindex 8f36ca364..ca2ff8c84 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap@@ -21,7 +21,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature-x[0m-[2mPath: [REPO]/../test-repo.feature-x[0m[0m+[2mPath: [REPO].feature-x[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snapindex 90271282d..e6bb20c23 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snap@@ -23,6 +23,6 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfile-test[0m-[2mPath: [REPO]/../test-repo.file-test[0m[0m+[2mPath: [REPO].file-test[0m[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snapindex 5ccdd2710..901a9f63e 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap@@ -23,7 +23,7 @@ success: falseexit_code: 1----- stdout -----β [32mCreated new worktree for [1mfail-test[0m-[2mPath: [REPO]/../test-repo.fail-test[0m[0m+[2mPath: [REPO].fail-test[0m[0m----- stderr -----Command failed with exit code: exit status: 1diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snapindex d94323af3..28ac414ee 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap@@ -23,7 +23,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mmultiline-test[0m-[2mPath: [REPO]/../test-repo.multiline-test[0m[0m+[2mPath: [REPO].multiline-test[0m[0mline1line2line3diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snapindex 5dd9cd3b9..157a9eef0 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap@@ -23,7 +23,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mexec-test[0m-[2mPath: [REPO]/../test-repo.exec-test[0m[0m+[2mPath: [REPO].exec-test[0m[0mtest output----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_internal_mode.snap b/tests/snapshots/integration__integration_tests__switch__switch_internal_mode.snapindex a9f2c2459..bb6de48a1 100644Binary files a/tests/snapshots/integration__integration_tests__switch__switch_internal_mode.snap and b/tests/snapshots/integration__integration_tests__switch__switch_internal_mode.snap differdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap b/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snapindex 1017d1720..d8014b8fb 100644Binary files a/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap and b/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap differdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_execute_still_runs.snap b/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_execute_still_runs.snapindex a6dc83ed3..a18e746d6 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_execute_still_runs.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_execute_still_runs.snap@@ -24,7 +24,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mno-config-commands-test[0m-[2mPath: [REPO]/../test-repo.no-config-commands-test[0m[0m+[2mPath: [REPO].no-config-commands-test[0m[0mexecute command runs----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_skips_post_start.snap b/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_skips_post_start.snapindex 857ed2070..40b5a986e 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_skips_post_start.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_skips_post_start.snap@@ -14,7 +14,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpxGAvrF+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpwrnD7PLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -23,7 +23,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mno-post-start[0m-[2mPath: [REPO]/../test-repo.no-post-start[0m[0m+[2mPath: [REPO].no-post-start[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_with_force.snap b/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_with_force.snapindex 68607f184..bd4937814 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_with_force.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_no_config_commands_with_force.snap@@ -15,7 +15,7 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpkUEnxv+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmps62pQaLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1704067200"@@ -24,7 +24,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mforce-no-config-commands[0m-[2mPath: [REPO]/../test-repo.force-no-config-commands[0m[0m+[2mPath: [REPO].force-no-config-commands[0m[0mTo enable automatic cd, run: wt configure-shelldiff --git a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snapindex e6f176c2d..c7b4e6e62 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap@@ -23,7 +23,7 @@ success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mfeature-with-base[0m-[2mPath: [REPO]/../test-repo.feature-with-base[0m[0m+[2mPath: [REPO].feature-with-base[0m[0mTo enable automatic cd, run: wt configure-shell