REPOSITORY not PREFIX when checking for the .git
This commit is contained in:
		
							parent
							
								
									ea6bfb66a1
								
							
						
					
					
						commit
						e8776194ac
					
				@ -2,7 +2,7 @@ require 'formula'
 | 
			
		||||
 | 
			
		||||
module Homebrew extend self
 | 
			
		||||
  def edit
 | 
			
		||||
    unless (HOMEBREW_PREFIX/'.git').directory?
 | 
			
		||||
    unless (HOMEBREW_REPOSITORY/'.git').directory?
 | 
			
		||||
      raise <<-EOS.undent
 | 
			
		||||
        Changes will be lost!
 | 
			
		||||
        The first time you `brew update', all local changes will be lost, you should
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user