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 <vega.james@gmail.com>
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 || :
}
REPO=$1;shift
export GIT_DIR="$LOCAL_REPOS/${REPO}.git"
- export GIT_WORK_TREE="$GIT_DIR/$(git config --get core.worktree)"
"$@"
}