Skip to content
Snippets Groups Projects
Commit dedf2ec3 authored by martin f. krafft's avatar martin f. krafft
Browse files

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: default avatarmartin f. krafft <madduck@madduck.net>
parent e9a6b438
Branches
Tags
No related merge requests found
...@@ -248,7 +248,6 @@ push() { ...@@ -248,7 +248,6 @@ push() {
} }
retire() { retire() {
unset GIT_WORK_TREE
unset VCSH_DIRECTORY unset VCSH_DIRECTORY
} }
...@@ -289,7 +288,6 @@ upgrade() { ...@@ -289,7 +288,6 @@ upgrade() {
use() { use() {
git_dir_exists git_dir_exists
export GIT_WORK_TREE="$(git rev-parse --show-toplevel)"
export VCSH_DIRECTORY="$VCSH_REPO_NAME" export VCSH_DIRECTORY="$VCSH_REPO_NAME"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment