[ 
https://issues.apache.org/jira/browse/SCM-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963569#comment-17963569
 ] 

ASF GitHub Bot commented on SCM-886:
------------------------------------

jira-importer commented on issue #1123:
URL: https://github.com/apache/maven-scm/issues/1123#issuecomment-2964647033

   **[Matthieu 
Brouillard](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mcfoggy)**
 commented
   
   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 (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 1.9.5
>            Reporter: Matthieu Brouillard
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 1.10.0
>
>
> 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
(v8.20.10#820010)

Reply via email to