14 lines
		
	
	
		
			256 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			256 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # typed: true
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| require_relative "directory"
 | |
| 
 | |
| module UnpackStrategy
 | |
|   # Strategy for unpacking Git repositories.
 | |
|   class Git < Directory
 | |
|     def self.can_extract?(path)
 | |
|       super && (path/".git").directory?
 | |
|     end
 | |
|   end
 | |
| end
 | 
