Subject: Re: [PATCH/RFC] introduce GIT_WORK_TREE environment variable

From: Johannes Sixt <[email-masked]>
Date: Wed, 28 Mar 2007 17:45:35 +0200

Matthias Lederhofer wrote:
> diff --git a/t/test-lib.sh b/t/test-lib.sh
> index c075474..77c6d23 100755
> --- a/t/test-lib.sh
> +++ b/t/test-lib.sh
> @@ -25,6 +25,7 @@ GIT_COMMITTER_EMAIL=[email-masked]
>  GIT_COMMITTER_NAME='C O Mitter'
>  unset GIT_DIFF_OPTS
>  unset GIT_DIR
> +unset GIT_WORK_TREE
>  unset GIT_EXTERNAL_DIFF
>  unset GIT_INDEX_FILE
>  unset GIT_OBJECT_DIRECTORY

connect.c:git_connect() unsets some environment variables, most
prominently GIT_DIR; I think it should also unset GIT_WORK_TREE.

-- Hannes