diff --git a/Cellar/homebrew/brew b/Cellar/homebrew/brew index 184d9f9eb5..aac8257087 100755 --- a/Cellar/homebrew/brew +++ b/Cellar/homebrew/brew @@ -6,14 +6,27 @@ require 'pathname' $root = Pathname.new(__FILE__).realpath.dirname.parent.parent def prune + n=0 + dirs=Array.new $root.find do |path| if path.directory? - name=path.basename - Find.prune if name == 'Cellar' or name == 'Formula' + name=path.relative_path_from($root).to_s + if name == '.git' or name == 'Cellar' or name == 'Formula' + Find.prune + else + dirs<