utils/git: remove external dependency loading
This commit is contained in:
		
							parent
							
								
									ba4d3ca94f
								
							
						
					
					
						commit
						36a57aa738
					
				@ -123,11 +123,11 @@ module Utils
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    def setup_gpg!
 | 
			
		||||
      require "formula"
 | 
			
		||||
      return unless Formula["gnupg"].optlinked?
 | 
			
		||||
      gnupg_bin = HOMEBREW_PREFIX/"opt/gnupg/bin"
 | 
			
		||||
      return unless gnupg_bin.directory?
 | 
			
		||||
 | 
			
		||||
      ENV["PATH"] = PATH.new(ENV["PATH"])
 | 
			
		||||
                        .prepend(Formula["gnupg"].opt_bin)
 | 
			
		||||
                        .prepend(gnupg_bin)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    # Special case of `git cherry-pick` that permits non-verbose output and
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user