Skip to content

Commit e01c9d7

Browse files
committed
Revert "Fixes regex - codespaces remotes are missing .git"
This reverts commit 99c8eb6.
1 parent cee6bf3 commit e01c9d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/github/src/pushErrorHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ export class GithubPushErrorHandler implements PushErrorHandler {
166166
return false;
167167
}
168168

169-
const match = /^https:\/\/github\.com\/([^/]+)\/([^/]+)(?:\.git)?/i.exec(remoteUrl)
170-
|| /^git@github\.com:([^/]+)\/([^/]+)(?:\.git)?/i.exec(remoteUrl);
169+
const match = /^https:\/\/github\.com\/([^/]+)\/([^/]+)\.git/i.exec(remoteUrl)
170+
|| /^git@github\.com:([^/]+)\/([^/]+)\.git/i.exec(remoteUrl);
171171

172172
if (!match) {
173173
return false;

0 commit comments

Comments
 (0)