When a username and an email are overridden with includeIf in Git config, editing a commit message applies the non-overridden username and email to the commit.
Override the username and the email as described above.
For a repository in C:/Work, edit the message of a commit: right-click a commit, select Edit Commit, select Edit Commit Message, edit the message and select Save.
Notice that the author (or committer) of the commit changes to foo <foo@personal.com>.
Expected behavior
After editing the message, the commit author (or committer) should be bar <bar@work.com>.
When perfoming a normal commit, Sublime Merge incorrectly displays the non-overridden username and email below the commit message edit box, but upon commit correctly applies the overridden username and email to the commit.
Version info
Description
When a username and an email are overridden with
includeIf
in Git config, editing a commit message applies the non-overridden username and email to the commit.User directory .gitconfig:
C:/Work/.gitconfig:
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
After editing the message, the commit author (or committer) should be bar <bar@work.com>.
Debug Information
sublime-merge-debug.txt
Notes
When perfoming a normal commit, Sublime Merge incorrectly displays the non-overridden username and email below the commit message edit box, but upon commit correctly applies the overridden username and email to the commit.