git-ecosystem / git-ecosystem/git-credential-manager

GitCredentialManager.Tests.GitTests.Git_GetRemotes_NoRemotes_ReturnsEmpty test fails on Arch Linux

Open
#1,663 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
9.3k
Forks
2.9k
Avg merge
7d 1h
Merged PRs (30d)
14

Description

[xUnit.net 00:00:00.7933268]     GitCredentialManager.Tests.GitTests.Git_GetRemotes_NoRemotes_ReturnsEmpty [FAIL]
  Failed GitCredentialManager.Tests.GitTests.Git_GetRemotes_NoRemotes_ReturnsEmpty [11 ms]
  Error Message:
   Assert.Empty() Failure
Collection: [GitRemote { FetchUrl = null, Name = "origin", PushUrl = null }]
  Stack Trace:
     at GitCredentialManager.Tests.GitTests.Git_GetRemotes_NoRemotes_ReturnsEmpty() in <>/git-credential-manager/src/shared/Core.Tests/GitTests.cs:line 66
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Failed!  - Failed:     1, Passed:     0, Skipped:     0, Total:     1, Duration: < 1 ms - Core.Tests.dll (net8.0)

Ran as LANG=C dotnet test --configuration LinuxRelease --filter GitCredentialManager.Tests.GitTests.Git_GetRemotes_NoRemotes_ReturnsEmpty.

Git version:

$ git --version
git version 2.45.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/shared/Core.Tests/GitTests.cs around line 66 and reproduce the named test with the reported LinuxRelease command on Arch Linux. Compare the test setup and Git behavior with the failure output; done means Git_GetRemotes_NoRemotes_ReturnsEmpty passes and returns no remotes in the affected environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
arch-linux, csharp, git
Domain
operating-systems, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.