From 6698a8a0d2da74a08c95a2c5289e9e2e771efdee Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 17 May 2008 12:15:53 +0100 Subject: [PATCH] set GIT_WORK_TREE just to be sure --- .zsh/func/vcsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.zsh/func/vcsh b/.zsh/func/vcsh index e404efc..ca26a9e 100755 --- a/.zsh/func/vcsh +++ b/.zsh/func/vcsh @@ -31,7 +31,11 @@ if [ ! -d "$FGIT_BASE/${1}.git" ]; then return 2 fi -export GIT_DIR=$FGIT_BASE/${1}.git +export GIT_DIR="$FGIT_BASE/${1}.git" +_WORKTREE="$(git config --get core.worktree)" +export GIT_WORK_TREE="$(readlink -f $GIT_DIR/$_WORKTREE)" +unset _WORKTREE + git status PS1="%S{VCSH:$1}%s$PS1" $SHELL -i -- 2.39.5