From dedf2ec3bafa9129ca1dcc9d2f5ed1eab2f96fb6 Mon Sep 17 00:00:00 2001
From: "martin f. krafft" <madduck@madduck.net>
Date: Fri, 19 Jul 2013 19:21:14 +0200
Subject: [PATCH] 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 <madduck@madduck.net>
---
 vcsh | 2 --
 1 file changed, 2 deletions(-)

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"
 }
 
-- 
GitLab