Skip to content

Commit 5041199

Browse files
committed
settings: use cached Git config entries for unscoped vars
Use the cached copy of Git configuration entries not only for URL-scoped keys, but unscoped keys too!
1 parent 6dff26e commit 5041199

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shared/Core/Settings.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,9 @@ public IEnumerable<string> GetSettingValues(string envarName, string section, st
429429
* property = value
430430
*
431431
*/
432-
if (config.TryGet($"{section}.{property}", isPath, out value))
432+
string name = $"{section}.{property}";
433+
if ((isPath && config.TryGet(name, isPath, out value)) ||
434+
configEntries.TryGetValue(name, out value))
433435
{
434436
yield return value;
435437
}

0 commit comments

Comments
 (0)