REPOSITORY not PREFIX when checking for the .git

This commit is contained in:
Max Howell 2012-08-02 10:20:06 -04:00
parent ea6bfb66a1
commit e8776194ac

View File

@ -2,7 +2,7 @@ require 'formula'
module Homebrew extend self module Homebrew extend self
def edit def edit
unless (HOMEBREW_PREFIX/'.git').directory? unless (HOMEBREW_REPOSITORY/'.git').directory?
raise <<-EOS.undent raise <<-EOS.undent
Changes will be lost! Changes will be lost!
The first time you `brew update', all local changes will be lost, you should The first time you `brew update', all local changes will be lost, you should