From a59bcafcf32825579c1ce457c87f0b29401b881b Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 5 Mar 2026 11:19:55 +0000 Subject: [PATCH] Propertly authorize .enter/.exit in worktree add --- worktree/worktree.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worktree/worktree.plugin.zsh b/worktree/worktree.plugin.zsh index 6731cd0..da5bb3c 100644 --- a/worktree/worktree.plugin.zsh +++ b/worktree/worktree.plugin.zsh @@ -41,8 +41,8 @@ Manage git worktrees by branch name." if [ -f $root/.enter ] && [ -f $root/.exit ]; then ln -s $root/.enter $wt_dest/.enter ln -s $root/.exit $wt_dest/.exit - _autoenv_authorized $PWD/.enter yes - _autoenv_authorized $PWD/.exit yes + _autoenv_authorized $wt_dest/.enter yes + _autoenv_authorized $wt_dest/.exit yes fi ;; rm|remove)