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

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

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

   **[Michael 
Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)**
 commented
   
   I can reproduce this now:
   
   ```
   Failed tests:
     
GitExeBlameCommandTckTest.testBlameCommand:44->BlameCommandTckTest.testBlameCommand:73
 Unable to checkin changes to the repository
     
GitExeBranchCommandTckTest>BranchCommandTckTest.testBranchCommandTest:73->ScmTestCase.assertResultIsSuccess:208
 The check out result success flag was false.
     
GitExeChangeLogCommandTckTest>ChangeLogCommandTckTest.testChangeLogCommand:76 
Unable to checkin changes to the repository
     
GitCheckInCommandNoBranchTest.testCheckinNoBranch:75->ScmTestCase.assertResultIsSuccess:208
 The check out result success flag was false.
     
GitCheckInCommandTest.testCheckinAfterRename:113->ScmTestCase.assertResultIsSuccess:208
 The check out result success flag was false.
     
GitExeCheckInCommandTckTest>CheckInCommandTckTest.testCheckInCommandPartialFileset:149->ScmTestCase.assertResultIsSuccess:208
 The check out result success flag was false.
     
GitExeCheckInCommandTckTest>CheckInCommandTckTest.testCheckInCommandTest:78->ScmTestCase.assertResultIsSuccess:208
 The check out result success flag was false.
     
GitExeStatusCommandTckTest>StatusCommandTckTest.testStatusCommand:102->StatusCommandTckTest.commit:64
 Check result was successful, output:
   *** Please tell me who you are.
   
   Run
   
     git config --global user.email "y...@example.com"
     git config --global user.name "Your Name"
   
   to set your account's default identity.
   Omit --global to set the identity only in this repository.
   
   fatal: no email was given and auto-detection is disabled
   
     
GitExeTagCommandTckTest>TagCommandTckTest.testTagCommandTest:58->ScmTestCase.assertResultIsSuccess:208
 The check out result success flag was false.
     
GitExeUpdateCommandTckTest>UpdateCommandTckTest.testUpdateCommand:131->UpdateCommandTckTest.commit:67
 Check result was successful, output:
   *** Please tell me who you are.
   
   Run
   
     git config --global user.email "y...@example.com"
     git config --global user.name "Your Name"
   
   to set your account's default identity.
   Omit --global to set the identity only in this repository.
   
   fatal: no email was given and auto-detection is disabled
   
   
   Tests run: 82, Failures: 10, Errors: 0, Skipped: 1
   ```
   
   Do you think you could provide a fix? I guess a static `.git/config` in the 
test repo shall be enough.
   




> 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