Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gzm55 opened this issue Jul 13, 2022 · 0 comments
Open

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

gzm55 opened this issue Jul 13, 2022 · 0 comments

Comments

@gzm55
Copy link

gzm55 commented Jul 13, 2022

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.

@gzm55 gzm55 changed the title UT fail on UT fail: Key difference for key: 'git.build.user.name' Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant