Skip to content

Code review fixes for Linux enterprise config defaults#1

Merged
mdellison90-stack merged 3 commits intomainfrom
copilot/review-feedback
Jan 24, 2026
Merged

Code review fixes for Linux enterprise config defaults#1
mdellison90-stack merged 3 commits intomainfrom
copilot/review-feedback

Conversation

Copy link

Copilot AI commented Jan 22, 2026

Code review of the Linux enterprise deployable default settings implementation (git-ecosystem#1814) identified several issues affecting correctness and clarity.

Changes

  • Fix non-deterministic file ordering: EnumerateFiles provides no ordering guarantee. Added explicit .OrderBy(Path.GetFileName) to ensure alphabetical processing as documented.

  • Remove incorrect import: Deleted unused Avalonia.Markup.Xaml.MarkupExtensions namespace.

  • Clarify null-coalescing logic: Simplified !_extConfigCache?.TryGetValue(...) ?? false to _extConfigCache == null || !_extConfigCache.TryGetValue(...) for readability.

  • Correct documentation: Fixed XML comment path from /etc/git-credential-manager.d to /etc/git-credential-manager/config.d.

// Before: non-deterministic order
IEnumerable<string> files = _fs.EnumerateFiles(configDir, "*");

// After: guaranteed alphabetical ordering by filename
IEnumerable<string> files = _fs.EnumerateFiles(configDir, "*").OrderBy(f => Path.GetFileName(f));

The file ordering fix is critical for predictable config precedence when multiple files exist in /etc/git-credential-manager/config.d.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • av-build-tel-api-v1.avaloniaui.net
    • Triggering command: /usr/share/dotnet/dotnet dotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/0.0.29/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/0.0.29/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll (dns block)
  • www.apple.com
    • Triggering command: /opt/hostedtoolcache/CodeQL/2.23.8/x64/codeql/tools/linux64/java/bin/java /opt/hostedtoolcache/CodeQL/2.23.8/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.23.8/x64/codeql/xml/tools/xml-extractor.jar --fileList=/home/REDACTED/work/git-credential-manager/.codeql-scratch/dbs/csharp/working/files-to-index5273098422278412517.list --sourceArchiveDir=/home/REDACTED/work/git-credential-manager/.codeql-scratch/dbs/csharp/src --outputDir=/home/REDACTED/work/git-credential-manager/.codeql-scratch/dbs/csharp/trap/csharp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Review


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 22, 2026 06:33
Co-authored-by: mdellison90-stack <230609064+mdellison90-stack@users.noreply.github.com>
Co-authored-by: mdellison90-stack <230609064+mdellison90-stack@users.noreply.github.com>
Copilot AI changed the title [WIP] Review content for accuracy and clarity Code review fixes for Linux enterprise config defaults Jan 22, 2026
@mdellison90-stack mdellison90-stack marked this pull request as ready for review January 23, 2026 06:33
@mdellison90-stack
Copy link
Owner

@mdellison90-stack mdellison90-stack merged commit 97b3797 into main Jan 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers

Projects

Development

Successfully merging this pull request may close these issues.

2 participants