author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sat, 6 Feb 2010 09:35:19 +0000 (10:35 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 6 Feb 2010 18:39:20 +0000 (10:39 -0800) | ||
commit | 717c3972dafa9d792a331b98a09d3cee88c17618 | |
tree | 865093c1b5a2bf025966a1ae994705423b1d1d28 | tree | snapshot |
parent | ab35469de0d2d2ba4be58fd0231687ddc9cc3cdc | commit | diff |
setenv(GIT_DIR) clean-up
This patch converts the setenv() calls in path.c and setup.c. After
the call, git grep with a pager works again in bare repos.
It leaves the setenv(GIT_DIR_ENVIRONMENT, ...) calls in git.c alone, as
they respond to command line switches that emulate the effect of setting
the environment variable directly.
The remaining site in environment.c is in set_git_dir() and is left
alone, too, of course. Finally, builtin-init-db.c is left changed
because the repo is still being carefully constructed when the
environment variable is set.
This fixes git shortlog when run inside a git directory, which had been
broken by abe549e1.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This patch converts the setenv() calls in path.c and setup.c. After
the call, git grep with a pager works again in bare repos.
It leaves the setenv(GIT_DIR_ENVIRONMENT, ...) calls in git.c alone, as
they respond to command line switches that emulate the effect of setting
the environment variable directly.
The remaining site in environment.c is in set_git_dir() and is left
alone, too, of course. Finally, builtin-init-db.c is left changed
because the repo is still being carefully constructed when the
environment variable is set.
This fixes git shortlog when run inside a git directory, which had been
broken by abe549e1.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path.c | diff | blob | history | |
setup.c | diff | blob | history |