create a new HOME with a global git config just for tests#335
Merged
technoweenie merged 2 commits intomasterfrom May 26, 2015
Merged
create a new HOME with a global git config just for tests#335technoweenie merged 2 commits intomasterfrom
technoweenie merged 2 commits intomasterfrom
Conversation
technoweenie
added a commit
that referenced
this pull request
May 26, 2015
create a new HOME with a global git config just for tests
chrisd8088
added a commit
to chrisd8088/git-lfs
that referenced
this pull request
Sep 8, 2024
The LFS_CONFIG variable, which we set in our t/testenv.sh library, is not referenced by any part of our current test suite. The last use of this variable was removed in 2015 in commit 1feee58 of PR git-lfs#335, when the test suite was revised to create a private home directory for the tests, so as to be able to set a standard global Git configuration separate from that of the current user's configuration. Hence we can just remove the LFS_CONFIG variable now.
chrisd8088
added a commit
to chrisd8088/git-lfs
that referenced
this pull request
Sep 15, 2024
The LFS_CONFIG variable, which we set in our t/testenv.sh library, is not referenced by any part of our current test suite. The last use of this variable was removed in 2015 in commit 1feee58 of PR git-lfs#335, when the test suite was revised to create a private home directory for the tests, so as to be able to set a standard global Git configuration separate from that of the current user's configuration. Hence we can just remove the LFS_CONFIG variable now.
chrisd8088
added a commit
to chrisd8088/git-lfs
that referenced
this pull request
Oct 5, 2024
The LFS_CONFIG variable, which we set in our t/testenv.sh library, is not referenced by any part of our current test suite. The last use of this variable was removed in 2015 in commit 1feee58 of PR git-lfs#335, when the test suite was revised to create a private home directory for the tests, so as to be able to set a standard global Git configuration separate from that of the current user's configuration. Hence we can just remove the LFS_CONFIG variable now.
This file contains hidden or 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
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.
This hacks
$HOMEso it's set to a temporary./test/remotedir. This way we can create a$HOME/.gitconfigfor common Git settings. The helpers don't have to create a separate git config file for every remote repo. This should also override any system wide or user git config settings that may affect tests. See http://git-scm.com/docs/git-config#FILES