Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding the home directory via the HOME variable #8

Merged
merged 1 commit into from
Apr 29, 2015

Conversation

dscho
Copy link
Member

@dscho dscho commented Apr 28, 2015

In Git for Windows, it is a well-established technique to use the
$HOME variable to define where the current user's home directory is,
falling back to $HOMEDRIVE$HOMEPATH and $USERPROFILE.

This strategy is particular important when Cygwin, or command-line
programs depending on the HOME variable, cannot cope with the Windows'
idea of the user's home directory e.g. when it is set to a hidden
directory via an UNC path (\share\some\hidden\folder$).

Of course this strategy needs to be opt-in. For that reason, this
strategy is activated via the env keyword in the db_home line in
/etc/nsswitch.conf.

Signed-off-by: Johannes Schindelin johannes.schindelin@gmx.de

In Git for Windows, it is a well-established technique to use the
`$HOME` variable to define where the current user's home directory is,
falling back to `$HOMEDRIVE$HOMEPATH` and `$USERPROFILE`.

This strategy is particular important when Cygwin, or command-line
programs depending on the HOME variable, cannot cope with the Windows'
idea of the user's home directory e.g. when it is set to a hidden
directory via an UNC path (\\share\some\hidden\folder$).

Of course this strategy needs to be opt-in. For that reason, this
strategy is activated via the `env` keyword in the `db_home` line in
`/etc/nsswitch.conf`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
Copy link
Member Author

dscho commented Apr 28, 2015

This PR is intended to address git-for-windows/git#108 (and also git-for-windows/git#100).

dscho added a commit that referenced this pull request Apr 29, 2015
Allow overriding the home directory via the HOME variable
@dscho dscho merged commit e0d5f4b into git-for-windows:develop Apr 29, 2015
@dscho dscho deleted the home-env branch April 29, 2015 07:53
dscho added a commit that referenced this pull request May 5, 2015
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request May 24, 2015
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Jun 28, 2015
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Aug 28, 2015
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Sep 16, 2015
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Nov 25, 2015
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Nov 27, 2015
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Jan 7, 2016
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Jan 15, 2016
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Jan 18, 2016
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Mar 14, 2016
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Mar 20, 2016
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Apr 5, 2016
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Apr 5, 2016
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Sep 9, 2016
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Jan 6, 2017
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Feb 14, 2017
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Mar 21, 2017
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Apr 2, 2017
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request May 19, 2017
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Jul 3, 2017
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Jul 12, 2017
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Sep 7, 2017
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Feb 12, 2018
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Nov 9, 2018
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Feb 20, 2019
Allow overriding the home directory via the HOME variable
git-for-windows-ci pushed a commit that referenced this pull request Mar 5, 2019
Allow overriding the home directory via the HOME variable
git-for-windows-ci pushed a commit that referenced this pull request Mar 9, 2019
Allow overriding the home directory via the HOME variable
git-for-windows-ci pushed a commit that referenced this pull request Mar 16, 2019
Allow overriding the home directory via the HOME variable
git-for-windows-ci pushed a commit that referenced this pull request Mar 31, 2019
Allow overriding the home directory via the HOME variable
git-for-windows-ci pushed a commit that referenced this pull request Apr 6, 2019
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Apr 15, 2019
Allow overriding the home directory via the HOME variable
git-for-windows-ci pushed a commit that referenced this pull request Apr 30, 2019
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Dec 17, 2019
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Apr 27, 2020
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Jun 4, 2020
Allow overriding the home directory via the HOME variable
git-for-windows-ci pushed a commit that referenced this pull request Jul 9, 2020
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Aug 14, 2020
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request Aug 24, 2020
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Mar 30, 2021
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Apr 8, 2021
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Nov 11, 2021
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Dec 3, 2021
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Feb 1, 2022
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request May 3, 2022
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request May 6, 2022
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request May 8, 2022
Allow overriding the home directory via the HOME variable
dscho added a commit that referenced this pull request May 8, 2022
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request May 13, 2022
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Sep 5, 2022
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request May 12, 2023
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Jun 16, 2023
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Jun 19, 2023
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Sep 6, 2023
Allow overriding the home directory via the HOME variable
dscho added a commit to dscho/msys2-runtime that referenced this pull request Nov 29, 2023
Allow overriding the home directory via the HOME variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants