Skip to content

UT fail: Key difference for key: 'git.build.user.name' #593

@gzm55

Description

@gzm55

Describe the bug

UT fail with log:

[ERROR] Failures:
[ERROR]   NativeAndJGitProviderTest.testCompareBasic:64->verifyNativeAndJGit:128 Key difference for key: 'git.build.user.name'; jgit=; nativeKey=Local User Name; for src/test/resources/_git_with_no_changes expected:<[]> but was:<[Local User Name]>
[ERROR]   NativeAndJGitProviderTest.testCompareIso8601Time:100->verifyNativeAndJGit:128 Key difference for key: 'git.build.user.name'; jgit=; nativeKey=Local User Name; for src/test/resources/_git_with_no_changes expected:<[]> but was:<[Local User Name]>
[ERROR]   NativeAndJGitProviderTest.testCompareSubrepoInChild:88->verifyNativeAndJGit:128 Key difference for key: 'git.build.user.name'; jgit=; nativeKey=Local User Name; for src/test/resources/_git_with_no_changes expected:<[]> but was:<[Local User Name]>
[ERROR]   NativeAndJGitProviderTest.testCompareSubrepoInRoot:76->verifyNativeAndJGit:128 Key difference for key: 'git.build.user.name'; jgit=; nativeKey=Local User Name; for src/test/resources/_git_with_no_changes expected:<[]> but was:<[Local User Name]>
[INFO]
[ERROR] Tests run: 185, Failures: 4, Errors: 0, Skipped: 1

Steps to Reproduce

  • check latest code on master branch
  • create Second user-specific config at ~/.config/git/config
  • git config --global user.name "Local User Name" if not set before
  • mvn test

Expected behavior

  • mvn test successes

Additional context

The jgit seems not respect the Second user-specific configuration file at ~/.config/git/config (issue), whereas native git does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions