MercurialDownloadStrategy: check out subrepos
Closes Homebrew/homebrew#13495. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
		
							parent
							
								
									6542b22677
								
							
						
					
					
						commit
						9ec231bcb7
					
				@ -487,10 +487,10 @@ class MercurialDownloadStrategy < AbstractDownloadStrategy
 | 
			
		||||
      if @spec and @ref
 | 
			
		||||
        ohai "Checking out #{@spec} #{@ref}"
 | 
			
		||||
        Dir.chdir @clone do
 | 
			
		||||
          safe_system 'hg', 'archive', '-y', '-r', @ref, '-t', 'files', dst
 | 
			
		||||
          safe_system 'hg', 'archive', '--subrepos', '-y', '-r', @ref, '-t', 'files', dst
 | 
			
		||||
        end
 | 
			
		||||
      else
 | 
			
		||||
        safe_system 'hg', 'archive', '-y', '-t', 'files', dst
 | 
			
		||||
        safe_system 'hg', 'archive', '--subrepos', '-y', '-t', 'files', dst
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user