[
https://issues.apache.org/jira/browse/SCM-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16473216#comment-16473216
]
Matthieu Brouillard commented on SCM-886:
-----------------------------------------
Make sure that you also do not have already launched a `git config user.email`
and `git config user.name` on the working repository.
I saw the error because on my setup I have globally
[user]
useConfigOnly = true
name = Matthieu Brouillard
Notice that the `user.email` is missing globally. This prevents me to commit on
repositories without configuring correctly the email I want for the particular
repository. So in order to commit to any repository, I need to do a `git config
user.email` at the repository level ; which I had not done on maven-scm project
and that implied some tests to fail (then ones doing commits).
> Tests with checkin rely on global git config
> --------------------------------------------
>
> Key: SCM-886
> URL: https://issues.apache.org/jira/browse/SCM-886
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-scm-provider-gitexe
> Affects Versions: 1.9.5
> Reporter: Matthieu Brouillard
> Priority: Major
>
> Inside maven-scm-provider-gitexe project, the two following tests
> `GitCheckInCommandNoBranchTest.testCheckinNoBranch` and
> `GitCheckInCommandTest.testCheckinAfterRename` expect a global user.name and
> user.email to be set.
> On installations where .gitconfig contains the following:
> {{[user]}}
> {{useConfigOnly = true}}
> The tests will fail.
> It would be better after repository creation to configure a user name & email
> at project level.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)