File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -41,4 +41,5 @@ Thumbs.db
4141.gocache /
4242.gomodcache /
4343.gopath /
44+ .golangci-cache /
4445.tmp_repro /
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ func TestHookScripts_HandleEdgeCases(t *testing.T) {
112112 name : "bash hook supports no-arg cd" ,
113113 shell : "bash" ,
114114 requiredLogic : []string {
115- "if [[ -z \" $2\" ]]" , // No-arg branch
115+ "if [[ -z \" $2\" ]]" , // No-arg branch
116116 "target_dir=$(command wtp cd" , // Uses `wtp cd` default behavior
117117 "target_dir=$(command wtp cd \" $2" , // Uses explicit worktree name when present
118118 },
@@ -126,9 +126,9 @@ func TestHookScripts_HandleEdgeCases(t *testing.T) {
126126 shell : "fish" ,
127127 requiredLogic : []string {
128128 "if test -z \" $argv[2]\" " , // No-arg branch
129- "set -l target_dir (command wtp cd" , // Uses `wtp cd` default behavior
130- "command wtp cd $argv[2]" , // Uses explicit worktree name when present
131- "cd \" $target_dir\" " , // Handles spaces safely
129+ "set -l target_dir (command wtp cd" , // Uses `wtp cd` default behavior
130+ "command wtp cd $argv[2]" , // Uses explicit worktree name when present
131+ "cd \" $target_dir\" " , // Handles spaces safely
132132 },
133133 notContains : []string {
134134 "Usage: wtp cd <worktree>" ,
You can’t perform that action at this time.
0 commit comments