diff options
author | Matthias Lederhofer <matled@gmx.net> | 2007-06-08 22:57:55 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-06-12 23:04:14 -0700 |
commit | 4394efecfa9f94ad14fe49bc9f499c5806aa83af (patch) | |
tree | 607649031f9410a9bb6903d26c0fffc1a2972253 /contrib/vim | |
parent | setup_git_directory: fix segfault if repository is found in cwd (diff) | |
download | tgif-4394efecfa9f94ad14fe49bc9f499c5806aa83af.tar.xz |
make git barf when an alias changes environment variables
Aliases changing environment variables (GIT_DIR or
GIT_WORK_TREE) can cause problems:
git has to use GIT_DIR to read the aliases from the config.
After running handle_options for the alias the options of the
alias may have changed environment variables. Depending on
the implementation of setenv the memory location obtained
through getenv earlier may contain the old value or the new
value (or even be used for something else?). To avoid these
problems git errors out if an alias uses any option which
changes environment variables.
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/vim')
0 files changed, 0 insertions, 0 deletions