libgit2 / libgit2/libgit2sharp

"LibGit2Sharp.LibGit2SharpException : the ProgramData file 'config' doesn't exist: " on macOS

Open
#2,046 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
925
PR merge metrics
No merged PRs in 30d

Description

Reproduction steps

Call Configuration.BuildFrom(null) on macOS.

Expected behavior

It should work fine.

Actual behavior

An exception is thrown because git_config_find_programdata does not work on macOS.

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 by reproducing Configuration.BuildFrom(null) on macOS and trace its call to git_config_find_programdata. Compare the macOS behavior with supported platforms to identify the configuration lookup path. Done means the call succeeds on macOS without the missing ProgramData config exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.