From: martin f. krafft Date: Fri, 19 Jul 2013 17:21:14 +0000 (+0200) Subject: Get rid of GIT_WORK_TREE during vcsh sessions X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/dedf2ec3bafa9129ca1dcc9d2f5ed1eab2f96fb6?hp=--cc Get rid of GIT_WORK_TREE during vcsh sessions This patch gets rid of GIT_WORK_TREE completely, which makes the whole thing a bit more transparent, I find. Git uses core.worktree anyway, so the environment variable isn't needed. Signed-off-by: martin f. krafft --- dedf2ec3bafa9129ca1dcc9d2f5ed1eab2f96fb6 diff --git a/vcsh b/vcsh index d45e95d..5642b97 100755 --- a/vcsh +++ b/vcsh @@ -248,7 +248,6 @@ push() { } retire() { - unset GIT_WORK_TREE unset VCSH_DIRECTORY } @@ -289,7 +288,6 @@ upgrade() { use() { git_dir_exists - export GIT_WORK_TREE="$(git rev-parse --show-toplevel)" export VCSH_DIRECTORY="$VCSH_REPO_NAME" }