Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

eclipse

egit

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]>
like image 572
dublintech Avatar asked Jun 24 '12 11:06

dublintech


3 Answers

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

The next commit from eGit will work.

like image 177
Joshua Fox Avatar answered Oct 14 '22 16:10

Joshua Fox


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.

like image 26
Ula Avatar answered Oct 14 '22 15:10

Ula


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).

like image 6
VonC Avatar answered Oct 14 '22 14:10

VonC