mxcl/homebrew — pull request #11954 by staticfloat (2012-04-30 00:01:41+00:00)
Title: Switch back to whichever branch we were on after `brew update`'ing

A pull request to satisfy Issue #11950, the only problem being that to get the current git branch, I am currently not using `safe_system`, as it does not return the command output. Therefore, the first call to `git` is not "safe". Suggestions?