From e58ac44a0d2d13d0cf46549fbc2a55e85435483e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 8 Mar 2026 13:23:35 +0100 Subject: [PATCH] Don't leak local var into global space --- default/bash/fns/worktrees | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default/bash/fns/worktrees b/default/bash/fns/worktrees index 05fb5638..1dcd6353 100644 --- a/default/bash/fns/worktrees +++ b/default/bash/fns/worktrees @@ -17,7 +17,7 @@ ga() { # Remove worktree and branch from within active worktree directory. gd() { if gum confirm "Remove worktree and branch?"; then - local cwd base branch root + local cwd base branch root worktree cwd="$(pwd)" worktree="$(basename "$cwd")"