[
https://issues.apache.org/jira/browse/SCM-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16473296#comment-16473296
]
Michael Osipov commented on SCM-886:
------------------------------------
I can reproduce this now:
{noformat}
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 "[email protected]"
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 "[email protected]"
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
{noformat}
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
> 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)