8
0
Просмотр исходного кода

Changed default GitHub URL used in dev tasks to git@github.com.

Szymon Kupś 10 лет назад
Родитель
Сommit
32310a7e57
2 измененных файлов с 3 добавлено и 3 удалено
  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' );