Don't leak local var into global space

This commit is contained in:
David Heinemeier Hansson
2026-03-08 13:25:46 +01:00
parent 5f2d12f9e7
commit e58ac44a0d
+1 -1
View File
@@ -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")"