Commit df2a79f4 authored by Committed by Junio C Hamano
expand_user_path: expand ~ to $HOME, not to the actual homedir.
In 395de250 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
Showing with 14 additions and 8 deletions