[BUILDTOOLS-356] Allow gitconfig includes when checking for user/email Created: 21/Sep/17  Updated: 22/Sep/17  Resolved: 22/Sep/17

Status: Resolved
Project: BuildTools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Devin Weaver Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Attachments: File BuildTool-Spikot--Allow-include-directives-when-checking-git-user.patch    

 Description   

In my git config I don't store my user.name and user.email in my /.gitconfig but instead in a /.git_local.conf which is included from my ~/.gitconfig

Per the Git documentation:

--[no-]includes
   Respect include.* directives in config files when looking up values.
   Defaults to off when a specific file is given (e.g., using --file,
   --global, etc) and on when searching all config files.

This means that every time I build it it attempts to force me to be the BuildTool user! That's annoying!

This change simply allows includes without detrimental effects the current use.

The attached patch will implement the --includes.



 Comments   
Comment by Devin Weaver [ 21/Sep/17 ]

This is an intermediate step prior to BUILDTOOLS-26 being implemented.

Generated at Thu Mar 27 21:31:34 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.