Keep getting Invalid author specified. Example: A U Thor <[email protected]>

16,828

Solution 1

Commit from command line: git commit -m "message"

The next commit from eGit will work.

Solution 2

When looking at the org.eclipse.jgit.util.RawParseUtils_ParsePersonIdentTest and the org.eclipse.jgit.util.RawParseUtils#parsePersonIdent() function, I can only imagine some special character or some Git configuration (user.name, user.email) missing.

Those settings should be enteredd in a configuration entry:

new Entry

The function which calls the parsing is org.eclipse.egit.ui.internal.dialogs.CommitMessageComponent#checkCommitInfo()

If you user name and email are correctly set, then it can be an Egit or JGit bug.
A bit like "bug 377969: EGit rebase does not valide user.name and user.email config properly" (on Linux).

Solution 3

As mentioned in this answer: https://stackoverflow.com/a/54449161/5381704

Fill both the entries:

Author

Committer

Solution 4

Look at the message you are getting:

Invalid author specified. Example: A U Thor <[email protected]>

It simply means that it wants info in indicated format.

For example, if your name is James Bond then you need to type

James Bond <[email protected]>

You can do the same in both rows.

Share:
16,828

Related videos on Youtube

dublintech
Author by

dublintech

Updated on October 14, 2022

Comments

  • dublintech
    dublintech over 1 year

    Using Eclipse Indigo and egit, everytime I commit a pop up appears and has my name and email in the author and committer boxes. They look fine. however, egit tells me:

    Invalid author specified. Example: A U Thor <[email protected]>
    

    when, I copy and paste A U Thor <[email protected]> into the author box, the message goes away. I can even edit it back to my name and email and it is fine. which makes no sense - what was wrong with it in the first place?

    Similar problem happens with committer box. I get:

    Invalid committer specified. Example: C O Mitter <[email protected]>
    
  • JGlass
    JGlass over 5 years
    This worked for me, had close close eclipse and reopen it - at least I believe that was the case as even after doing that it wasnt working for a moment - I did try the "link with editor and selection" option in Git Staging which may have helped, it then showed no repo selected so went and selected the repo again, back to git staging and now it does show my email addy in the Author and Committer fields.
  • Bishwas Mishra
    Bishwas Mishra almost 4 years
    Elegant. Maybe it needs some default configuration, which is set by pushing once.