Keep getting Invalid author specified. Example: A U Thor

前端 未结 7 789
梦谈多话
梦谈多话 2021-01-11 14:22

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:

相关标签:
7条回答
  • 2021-01-11 14:33

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

    0 讨论(0)
  • 2021-01-11 14:38

    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.

    0 讨论(0)
  • 2021-01-11 14:39

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

    Fill both the entries:

    Author

    Committer

    0 讨论(0)
  • 2021-01-11 14:50

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

    The next commit from eGit will work.

    0 讨论(0)
  • 2021-01-11 14:51
    1. Clean the Project

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

    0 讨论(0)
  • 2021-01-11 14:53

    You have to fill out below of form.

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

    Author : davidLEE
    Committer : davidLEE

    0 讨论(0)
提交回复
热议问题