5e5c798d09
In the internal function loadGitDirs, Git LFS will attempt to resolve the working and dotgit directory by calling 'git rev-parse --git-dir --show-top-level'. This information is used in the output of 'git lfs env', which displays information about the system- and repository-level configuration as it pertains to Git LFS. However, when 'git lfs env' is called outside of the repository, any information that is repository-specific is left blank. For example, $ git lfs env git-lfs/2.4.0 (GitHub; darwin amd64; go 1.10.3) git version: 2.18.0 LocalWorkingDir= We ``silence'' the error coming from 'git-rev-parse(1)' in loadGitDirs by looking for the string "Not a git repository". If we found that string, we don't show the error message on STDERR (because it is OK not to), but if we fail to find that string, we assume that the error is legitimate and thusly forward it on to STDERR. This string changed casing in [1], so we make a corresponding change here in order to catch the casing on all versions of Git (by making the comparison case-insensitive). [1]: git/git@fc045fe7d4 (Mark messages for translations, 2018-02-13) |
||
---|---|---|
.. | ||
config_test.go | ||
config.go | ||
delayed_environment.go | ||
environment_test.go | ||
environment.go | ||
extension_test.go | ||
extension.go | ||
fetcher.go | ||
git_fetcher.go | ||
map_fetcher.go | ||
netrc_nix.go | ||
netrc_windows.go | ||
netrc.go | ||
os_fetcher.go | ||
url_config_test.go | ||
url_config.go | ||
version.go |