After an interrupted brew update
because of a network issue, Homebrew appears to be broken:
$ brew update
error: pathspec \'master\' did not match a
when i try it, sudo is needed:
$ git reset --hard origin/master
error: unable to unlink old 'Library/Homebrew/macos/xcode.rb' (Permission denied)
fatal: Could not reset index file to revision 'origin/master'.
$ sudo !!
sudo git reset --hard origin/master
Password:
HEAD is now at 97302bf xrootd 3.2.2