From: martin f. krafft Date: Sat, 17 May 2008 12:16:44 +0000 (+0100) Subject: no need to dereference worktree X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/3b0f6cf1458293c4ed7177d10133763c0300e806?ds=sidebyside;hp=-c no need to dereference worktree --- 3b0f6cf1458293c4ed7177d10133763c0300e806 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