16

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 <author@example.com>

when, I copy and paste A U Thor <author@example.com> 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 <committer@example.com>
CharlesB
  • 86,532
  • 28
  • 194
  • 218
dublintech
  • 16,815
  • 29
  • 84
  • 115

7 Answers7

15

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

The next commit from eGit will work.

Joshua Fox
  • 18,704
  • 23
  • 87
  • 147
6

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

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    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. – JGlass Aug 27 '18 at 19:39
1

Look at the message you are getting:

Invalid author specified. Example: A U Thor <author@example.com>

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 <bond@unknown.com>

You can do the same in both rows.

Ula
  • 2,628
  • 2
  • 24
  • 33
1

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

Fill both the entries:

Author

Committer

Bishwas Mishra
  • 1,235
  • 1
  • 12
  • 25
0

Are you committing to git directly or to a gerrit review system? At least gerrit has case sensitive mail addresses, so they have to be entered exactly as known by the server.

In our company environment that has led to some confusion as they are stored as Jon.Doe@example.com in the LDAP server, but most people tried jon.doe@example.com with egit and got exactly your error messages.

Another trivial alternative would be some kind of bogus whitespace at the beginning or end of your author name in the configuration. You might not see it in the error messages. I have seen this kind of error happening when people copied content from a webpage into a rich text editor which stored more than the "pure" text.

Bananeweizen
  • 21,797
  • 8
  • 68
  • 88
0

You have to fill out below of form.

Name and e-mail is your account name and e-mail.

Author : davidLEE
Committer : davidLEE

0
  1. Clean the Project

  2. Commit again, will appear Author and Committer automatically as below image.enter image description here

Gayan Chinthaka
  • 521
  • 6
  • 5