forked from Alexpux/Cygwin
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thedb_home
line in/etc/nsswitch.conf
.Signed-off-by: Johannes Schindelin johannes.schindelin@gmx.de