Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. Signed-off-by: Giuseppe Bilotta <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information