mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	
							parent
							
								
									6dc314ac6d
								
							
						
					
					
						commit
						f4009566af
					
				
				
				Notes:
				
					git
				
				2022-04-28 19:09:14 +09:00 
				
			
			
			
		
		
					 3 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -102,6 +102,7 @@ class Gem::Source::Git < Gem::Source
 | 
			
		|||
      success = system @git, 'reset', '--quiet', '--hard', rev_parse
 | 
			
		||||
 | 
			
		||||
      if @need_submodules
 | 
			
		||||
        require "open3"
 | 
			
		||||
        _, status = Open3.capture2e(@git, 'submodule', 'update', '--quiet', '--init', '--recursive')
 | 
			
		||||
 | 
			
		||||
        success &&= status.success?
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,6 +9,8 @@ class TestGemExtCmakeBuilder < Gem::TestCase
 | 
			
		|||
    # Details: https://github.com/rubygems/rubygems/issues/1270#issuecomment-177368340
 | 
			
		||||
    pend "CmakeBuilder doesn't work on Windows." if Gem.win_platform?
 | 
			
		||||
 | 
			
		||||
    require "open3"
 | 
			
		||||
 | 
			
		||||
    begin
 | 
			
		||||
      _, status = Open3.capture2e('cmake')
 | 
			
		||||
      pend 'cmake not present' unless status.success?
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -68,6 +68,7 @@ class TestGemSourceGit < Gem::TestCase
 | 
			
		|||
    git_gem 'b'
 | 
			
		||||
 | 
			
		||||
    Dir.chdir 'git/a' do
 | 
			
		||||
      require "open3"
 | 
			
		||||
      output, status = Open3.capture2e(@git, 'submodule', '--quiet', 'add', File.expand_path('../b'), 'b')
 | 
			
		||||
      assert status.success?, output
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue