This worked for me.
- Change the first line of
/usr/local/Library/brew.rbto:#!/usr/bin/env ruby. cd $(brew --repository)git commit -am 'use env ruby'.OLD_REF = $(git log | head -1 | sed 's/commit //')git reset --hard HEAD^git checkout $OLD_REFbrew update
Thanks.
I tried the No.1 method. It works !
Thanks.