author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Thu, 19 Nov 2009 15:21:15 +0000 (16:21 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 19 Nov 2009 18:01:12 +0000 (10:01 -0800) | ||
commit | df2a79f4225b7216dce010ebfe41f8ad0de34b24 | |
tree | b3ceaa28cfbc8a42c4894e308c08a0d724a5fab6 | tree | snapshot |
parent | 395de250d9d9762b8ac1ce98b297d60d0b5bd643 | commit | diff |
expand_user_path: expand ~ to $HOME, not to the actual homedir.
In 395de250d (Expand ~ and ~user in core.excludesfile, commit.template),
we introduced the mechanism. But expanding ~ using getpw is not what
people overriding $HOME would usually expect. In particular, git looks
for the user's .gitconfig using $HOME, so it's better to be consistent.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In 395de250d (Expand ~ and ~user in core.excludesfile, commit.template),
we introduced the mechanism. But expanding ~ using getpw is not what
people overriding $HOME would usually expect. In particular, git looks
for the user's .gitconfig using $HOME, so it's better to be consistent.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt | diff | blob | history | |
path.c | diff | blob | history |