-
Notifications
You must be signed in to change notification settings - Fork 717
Description
Version
0.13.8
Operating System
macOS
Distribution Method
dmg (Apple Silicon)
Describe the issue
GitButler doesn't appear to use git configurations that are dynamically sourced in via an includeIf. I don't have the following configuration set it my default ~/.gitconfig, rather, they're sourced in depending on the remote that I'm working on.
user.nameuser.emailuser.signingkeygpg.ssh.allowedsignersfile
My global ~/.gitconfig has entries like this, which then sets the respective configuration items.
includeif.hasconfig:remote.*.url:[email protected]:*/**.path=~/.dotfiles/git/gitconfig-personal
includeif.hasconfig:remote.*.url:[email protected]:*/**.path=~/.dotfiles/git/gitconfig-work
I get the following error when trying to commit with the above configuration.
However, if I do set those variables in either the global or repository configurations, then it works fine.
How to reproduce
As a minimum, remove the following from your global configuration, and set them via an includeIf directive.
user.nameuser.email
Use GitButler to make a commit to reproduce the error.
Expected behavior
GitButler should use any values sourced in via an includeIf, just like git currently does. It allows the user to set different names, emails, signatures, etc... depending on the includeIf test conditions.
Relevant log output
No response