mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Merge pull request #2808 from pchaigno/submodules-ssh
HTTPS links for submodules
This commit is contained in:
		
							
								
								
									
										6
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							@@ -676,7 +676,7 @@
 | 
				
			|||||||
	url = https://github.com/CausalityLtd/sublime-pony
 | 
						url = https://github.com/CausalityLtd/sublime-pony
 | 
				
			||||||
[submodule "vendor/grammars/X10"]
 | 
					[submodule "vendor/grammars/X10"]
 | 
				
			||||||
	path = vendor/grammars/X10
 | 
						path = vendor/grammars/X10
 | 
				
			||||||
	url = git@github.com:x10-lang/x10-highlighting.git
 | 
						url = https://github.com/x10-lang/x10-highlighting
 | 
				
			||||||
[submodule "vendor/grammars/language-babel"]
 | 
					[submodule "vendor/grammars/language-babel"]
 | 
				
			||||||
	path = vendor/grammars/language-babel
 | 
						path = vendor/grammars/language-babel
 | 
				
			||||||
	url = https://github.com/gandm/language-babel
 | 
						url = https://github.com/gandm/language-babel
 | 
				
			||||||
@@ -691,7 +691,7 @@
 | 
				
			|||||||
	url = https://github.com/freemarker/FreeMarker.tmbundle
 | 
						url = https://github.com/freemarker/FreeMarker.tmbundle
 | 
				
			||||||
[submodule "vendor/grammars/MagicPython"]
 | 
					[submodule "vendor/grammars/MagicPython"]
 | 
				
			||||||
	path = vendor/grammars/MagicPython
 | 
						path = vendor/grammars/MagicPython
 | 
				
			||||||
	url = git@github.com:MagicStack/MagicPython.git
 | 
						url = https://github.com/MagicStack/MagicPython
 | 
				
			||||||
[submodule "vendor/grammars/language-click"]
 | 
					[submodule "vendor/grammars/language-click"]
 | 
				
			||||||
	path = vendor/grammars/language-click
 | 
						path = vendor/grammars/language-click
 | 
				
			||||||
	url = https://github.com/stenverbois/language-click.git
 | 
						url = https://github.com/stenverbois/language-click.git
 | 
				
			||||||
@@ -706,4 +706,4 @@
 | 
				
			|||||||
	url = https://github.com/erkyrath/language-inform7
 | 
						url = https://github.com/erkyrath/language-inform7
 | 
				
			||||||
[submodule "vendor/grammars/atom-language-stan"]
 | 
					[submodule "vendor/grammars/atom-language-stan"]
 | 
				
			||||||
	path = vendor/grammars/atom-language-stan
 | 
						path = vendor/grammars/atom-language-stan
 | 
				
			||||||
	url = git@github.com:jrnold/atom-language-stan.git
 | 
						url = https://github.com/jrnold/atom-language-stan
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -113,6 +113,20 @@ class TestGrammars < Minitest::Test
 | 
				
			|||||||
    assert_equal [], licensed, msg
 | 
					    assert_equal [], licensed, msg
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  def test_submodules_use_https_links
 | 
				
			||||||
 | 
					    File.open(".gitmodules", "r") do |fh|
 | 
				
			||||||
 | 
					      ssh_submodules = []
 | 
				
			||||||
 | 
					      fh.each_line do |line|
 | 
				
			||||||
 | 
					        if matches = line.match(/url = (git@.*)/)
 | 
				
			||||||
 | 
					          submodule_link = matches.captures[0]
 | 
				
			||||||
 | 
					          ssh_submodules.push(submodule_link)
 | 
				
			||||||
 | 
					        end
 | 
				
			||||||
 | 
					      end
 | 
				
			||||||
 | 
					      msg = "The following submodules don't have an HTTPS link:\n* #{ssh_submodules.join("\n* ")}"
 | 
				
			||||||
 | 
					      assert_equal [], ssh_submodules, msg
 | 
				
			||||||
 | 
					    end
 | 
				
			||||||
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  private
 | 
					  private
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def submodule_paths
 | 
					  def submodule_paths
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user