![]() C git has a default for git config core.excludesfile: "Its default value is $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty, $HOME/.config/git/ignore is used instead." [1] Implement this in the WorkingTreeIterator$RootIgnoreNode. To make this testable, mock the "user.home" directory for all JGit tests, otherwise tests might pick up a real user's git ignore file. Also ensure that JGit code always reads "user.home" via the SystemReader. Add tests for both locations. [1] https://git-scm.com/docs/gitignore#_description Bug: 436127 Change-Id: Ie510259320286c3c13a6464a37da1bd9ca1e373a Signed-off-by: Thomas Wolf <twolf@apache.org> |
||
---|---|---|
.. | ||
time | ||
Assert.java | ||
JGitTestUtil.java | ||
LocalDiskRepositoryTestCase.java | ||
MockSystemReader.java | ||
Repeat.java | ||
RepeatRule.java | ||
RepositoryTestCase.java | ||
SeparateClassloaderTestRunner.java | ||
StrictWorkMonitor.java | ||
TestRepository.java | ||
TestRng.java |