From e1bc2469231f23d2c52bf47c2d55d88d1eaeacd4 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Thu, 17 Nov 2011 22:03:05 -0500 Subject: [PATCH] Don't export GIT_WORK_TREE. Since GIT_DIR is set and the config has core.worktree set, exporting GIT_WORK_TREE in login/execin is unnecessary. Also, having it exported can cause other git commands to fail. Signed-off-by: James McCoy --- movein | 2 -- 1 file changed, 2 deletions(-) diff --git a/movein b/movein index 04905c1..10658ba 100755 --- a/movein +++ b/movein @@ -176,7 +176,6 @@ login() { fi export GIT_DIR="$LOCAL_REPOS/${1}.git" - export GIT_WORK_TREE="$GIT_DIR/$(git config --get core.worktree)" GIT_PS1_SHOWUNTRACKEDFILES= PSMOVEIN="movein:${1}" $SHELL -i || : } @@ -190,7 +189,6 @@ execin() { REPO=$1;shift export GIT_DIR="$LOCAL_REPOS/${REPO}.git" - export GIT_WORK_TREE="$GIT_DIR/$(git config --get core.worktree)" "$@" } -- 2.39.5