8
0
Pārlūkot izejas kodu

Merge pull request #52 from ckeditor/t/48

t/48 - Task dev-install clones repositories using wrong Git URLs.
Piotrek Koszuliński 10 gadi atpakaļ
vecāks
revīzija
e802f4923c
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1 1
      dev/tasks/utils/git.js
  2. 2 2
      dev/tests/git.js

+ 1 - 1
dev/tasks/utils/git.js

@@ -50,7 +50,7 @@ module.exports = {
 			return null;
 		}
 
-		server = match[ 1 ] || 'https://github.com/';
+		server = match[ 1 ] || 'git@github.com:';
 		repository = match[ 2 ];
 		user = match[ 3 ];
 		name = match[ 4 ];

+ 2 - 2
dev/tests/git.js

@@ -28,7 +28,7 @@ describe( 'utils', () => {
 			it( 'should parse short GitHub URL ', () => {
 				const urlInfo = git.parseRepositoryUrl( 'ckeditor/ckeditor5-core' );
 
-				expect( urlInfo.server ).to.equal( 'https://github.com/' );
+				expect( urlInfo.server ).to.equal( 'git@github.com:' );
 				expect( urlInfo.repository ).to.equal( 'ckeditor/ckeditor5-core' );
 				expect( urlInfo.user ).to.equal( 'ckeditor' );
 				expect( urlInfo.name ).to.equal( 'ckeditor5-core' );
@@ -38,7 +38,7 @@ describe( 'utils', () => {
 			it( 'should parse short GitHub URL with provided branch ', () => {
 				const urlInfo = git.parseRepositoryUrl( 'ckeditor/ckeditor5-core#experimental' );
 
-				expect( urlInfo.server ).to.equal( 'https://github.com/' );
+				expect( urlInfo.server ).to.equal( 'git@github.com:' );
 				expect( urlInfo.repository ).to.equal( 'ckeditor/ckeditor5-core' );
 				expect( urlInfo.user ).to.equal( 'ckeditor' );
 				expect( urlInfo.name ).to.equal( 'ckeditor5-core' );