Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Scalar.Common/Maintenance/ConfigStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ public bool TrySetConfig(out string error)
{ "status.aheadbehind", "false" },
};

if (this.UseGvfsProtocol.Value)
{
// If a user's global config has "status.submoduleSummary=true", then
// that could slow "git status" significantly here, even though the
// GVFS protocol forbids submodules. Still, disable it optionally in
// case the user really wants it in their local config.
optionalSettings.Add("status.submoduleSummary", "false");
}

if (!this.TrySetConfig(optionalSettings, isRequired: false, out error))
{
error = $"Failed to set some optional settings: {error}";
Expand Down