File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,13 @@ public static IEnumerable<string> GetGitConfigurationScopes(this Uri uri)
102102 }
103103 }
104104
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 ) ) &&
105+ // Check whether the URL only contains hostname.
106+ // This usually means the host is on your local network.
107+ if ( ! string . IsNullOrWhiteSpace ( host ) &&
109108 ! host . Contains ( "." ) )
110109 {
111110 yield return $ "{ schemeAndDelim } { host } ";
111+ // If we have reached this point, there are no more subdomains to unfold, so exit early.
112112 yield break ;
113113 }
114114
You can’t perform that action at this time.
0 commit comments