Search code examples
gitmercurialtortoisehg

Invalid Email addrss - Hg git


Why do I get "Invalid Email Address" when commiting to GitHub through TortoiseHg Hg-git plugin? The push works fine, however the email address is invalid.

I have tried many "solutions":

Add this to hgrc:

[ui]
username = Xybrek <xybrek@myemail.com>

And also adding this to the global TortoiseHg mercurial.ini

I also have tried adding authors.txt in my project's path

Then add this line in the hgrc

[git]
authors = authors.txt

Solution

  • authors.txt should be located in the root of the repository.

    Don't forget to clear a cached git repo:

    $ hg gclear