We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d1b3c commit a14a300Copy full SHA for a14a300
src/shared/Core/UriExtensions.cs
@@ -102,6 +102,16 @@ public static IEnumerable<string> GetGitConfigurationScopes(this Uri uri)
102
}
103
104
105
+ // check whether the host specification contains of hostname only
106
+ // this usually means, the git hosting instance is part of your local
107
+ // network.
108
+ if (!(string.IsNullOrWhiteSpace(host) || string.IsNullOrEmpty(host)) &&
109
+ !host.Contains("."))
110
+ {
111
+ yield return $"{schemeAndDelim}{host}";
112
+ yield break;
113
+ }
114
+
115
// Unfold the host by sub-domain, left-to-right
116
while (!string.IsNullOrWhiteSpace(host))
117
{
0 commit comments