mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 23:52:56 -05:00
Fixes regex - codespaces remotes are missing .git
This commit is contained in:
@@ -166,8 +166,8 @@ export class GithubPushErrorHandler implements PushErrorHandler {
|
||||
return false;
|
||||
}
|
||||
|
||||
const match = /^https:\/\/github\.com\/([^/]+)\/([^/]+)\.git/i.exec(remoteUrl)
|
||||
|| /^git@github\.com:([^/]+)\/([^/]+)\.git/i.exec(remoteUrl);
|
||||
const match = /^https:\/\/github\.com\/([^/]+)\/([^/]+)(?:\.git)?/i.exec(remoteUrl)
|
||||
|| /^git@github\.com:([^/]+)\/([^/]+)(?:\.git)?/i.exec(remoteUrl);
|
||||
|
||||
if (!match) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user