git-lfs/git
Cody Krieger 8a484d0aed
invoke git-config with --includes to ensure it always evaluates include.* directives
Per git-config's man page, include.* directives are not respected by
default when asked to evaluate a specific file (whether via --global,
--file /path/to/.gitconfig, or GIT_CONFIG=/path/to/.gitconfig).

This patch ensures that, if GIT_CONFIG is set in the environment when
e.g. git-lfs-push is invoked, config directives from included files are
evaluated.

This is important if, for example, an included file contains a
url.<foo>.insteadOf directive or lfs.<foo>.locksverify directive that's
shared between many repositories.
2021-03-03 14:26:26 -08:00
..
gitattr Support SHA-256 repositories 2020-07-29 20:53:44 +00:00
githistory Support SHA-256 repositories 2020-07-29 20:53:44 +00:00
attribs.go git: match gitattributes patterns strictly 2020-11-12 18:41:32 +00:00
config_test.go git: provide a read-only configuration object 2018-10-26 15:27:54 +00:00
config.go invoke git-config with --includes to ensure it always evaluates include.* directives 2021-03-03 14:26:26 -08:00
filter_process_scanner_test.go Fix error strings to follow Go guidelines 2019-10-22 17:33:49 +03:00
filter_process_scanner.go git: remove low value debug message 2017-10-27 09:51:45 -06:00
filter_process_status.go git: introduce type 'FilterProcessStatus' 2017-08-24 18:28:50 -04:00
git_test.go git: add a function to check for a zero object ID 2020-07-29 20:53:43 +00:00
git.go tools: add a function to canonicalize paths 2020-10-14 16:49:23 +00:00
ls_files.go Tidy files 2019-10-02 19:17:28 +00:00
object_scanner.go Support SHA-256 repositories 2020-07-29 20:53:44 +00:00
pkt_line_reader_test.go filter-process: fix reading 1024 byte files 2016-11-22 12:21:48 +01:00
pkt_line_reader.go filter-process: avoid hang when using git hash-object --stdin 2019-11-04 19:55:45 +00:00
pkt_line_test.go Fix error strings to follow Go guidelines 2019-10-22 17:33:49 +03:00
pkt_line_writer_test.go git: teach *PktlineWriter.Flush() to respond to nil receiver 2017-08-02 13:26:38 -06:00
pkt_line_writer.go git: teach *PktlineWriter.Flush() to respond to nil receiver 2017-08-02 13:26:38 -06:00
pkt_line.go Fix error strings to follow Go guidelines 2019-10-22 17:33:49 +03:00
refs_test.go git: port over existing commands.refUpdate tests 2018-01-05 15:18:17 -07:00
refs.go git: remove unnecessary debug trace messages 2018-01-17 11:06:23 -07:00
rev_list_scanner_test.go git: avoid "bad object" messages when force-pushing 2020-04-23 15:13:31 +00:00
rev_list_scanner.go git: support SHA-256 in rev-list scanner 2020-07-29 20:53:43 +00:00
version.go git/version.go: replace sync.Mutex usage with sync.Once 2019-01-23 15:42:32 -08:00