Skip to content

Commit 569e89e

Browse files
committed
reverted changes to url in hasArchiveCapability
1 parent 8aa25cb commit 569e89e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

__tests__/package-resolver.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ addTest('https://git@github.com/stevemao/left-pad.git'); // git url, with userna
6161
addTest('https://bitbucket.org/hgarcia/node-bitbucket-api.git'); // hosted git url
6262
addTest('https://github.com/yarnpkg/yarn/releases/download/v0.18.1/yarn-v0.18.1.tar.gz'); // tarball
6363
addTest('https://github.com/yarnpkg/e2e-test-repo.git#greenkeeper/cross-env-3.1.4'); // hash with slashes
64-
addTest('ssh://git@bitbucket.org/bestander/test-repo.git'); // bitbucket with archive protocol supported
6564
addTest('gitlab:leanlabsio/kanban'); // gitlab
6665
addTest('gist:d59975ac23e26ad4e25b'); // gist url
6766
addTest('bitbucket:hgarcia/node-bitbucket-api'); // bitbucket url

src/util/git.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export default class Git {
5555
*/
5656

5757
static async hasArchiveCapability(gitUrl: string): Promise<boolean> {
58-
// USER@HOSTNAME
59-
const match = gitUrl.match(/^(.*?)@(.*?)$/);
58+
// USER@HOSTNAME:PATHNAME
59+
const match = gitUrl.match(/^(.*?)@(.*?):(.*?)$/);
6060
if (!match) {
6161
return false;
6262
}

0 commit comments

Comments
 (0)