Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Last active December 17, 2015 07:39
Show Gist options
  • Save sarahhodne/5574614 to your computer and use it in GitHub Desktop.
Save sarahhodne/5574614 to your computer and use it in GitHub Desktop.
Workaround for the current issue with "brew update" on the Travis Mac VMs.

There's currently an issue with running brew update on the Mac VMs, where you'll get an error along the lines of Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master.

Running git --work-tree=/usr/local --git-dir=/usr/local/.git clean -fd before brew update will fix this. The VMs will be updated later today with a fix, at which point the workaround is no longer needed, but it won't break anything either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment