File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -285,10 +285,13 @@ public virtual Task EraseCredentialAsync(InputArguments input)
285
285
ThrowIfDisposed ( ) ;
286
286
287
287
// We should not allow unencrypted communication and should inform the user
288
- if ( StringComparer . OrdinalIgnoreCase . Equals ( remoteUri . Scheme , "http" ) )
288
+ if ( ! _context . Settings . AllowUnsafeRemotes &&
289
+ StringComparer . OrdinalIgnoreCase . Equals ( remoteUri . Scheme , "http" ) )
289
290
{
290
291
throw new Trace2Exception ( _context . Trace2 ,
291
- "Unencrypted HTTP is not supported for GitHub. Ensure the repository remote URL is using HTTPS." ) ;
292
+ "Unencrypted HTTP is not recommended for GitHub. " +
293
+ "Ensure the repository remote URL is using HTTPS " +
294
+ $ "or see { Constants . HelpUrls . GcmUnsafeRemotes } about how to allow unsafe remotes.") ;
292
295
}
293
296
294
297
string service = GetServiceName ( remoteUri ) ;
You can’t perform that action at this time.
0 commit comments