shell setup: clear_local_git_env() function
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 22 Feb 2010 23:22:29 +0000 (00:22 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 23 Feb 2010 08:16:12 +0000 (09:16 +0100)
commit105efa86d2d7c0514e3d4b7b9d0e389f96916c04
tree776341084d8e8c2561f593e38ea55523297e2324
parent49ef3c68491797b0bb62db3ec1b66a0347fc35e5
shell setup: clear_local_git_env() function

Introduce an auxiliary function to clear all repo-local environment
variables. This should be invoked by any shell script that switches
repository during execution, to ensure that the environment is clean
and that things such as the git dir and worktree are set up correctly.

The list matches the one in git_connect(), so bring them in sync by adding
the missing CONFIG_ENVIRONMENT. Also add a note about the fact that they
should be kept that way.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
connect.c
git-sh-setup.sh