From 3b0f6cf1458293c4ed7177d10133763c0300e806 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 17 May 2008 13:16:44 +0100 Subject: [PATCH] no need to dereference worktree --- .zsh/func/vcsh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.zsh/func/vcsh b/.zsh/func/vcsh index 655c9ea..cd6d205 100755 --- a/.zsh/func/vcsh +++ b/.zsh/func/vcsh @@ -32,9 +32,7 @@ if [ ! -d "$FGIT_BASE/${1}.git" ]; then fi export GIT_DIR="$FGIT_BASE/${1}.git" -local _WORKTREE="$(git config --get core.worktree)" -export GIT_WORK_TREE="$(readlink -f $GIT_DIR/$_WORKTREE)" -unset _WORKTREE +export GIT_WORK_TREE="$GIT_DIR/$(git config --get core.worktree)" git status -- 2.39.5