
When installing with --HEAD, cached repo clones do "git fetch origin" followed by "git reset --hard". This will only reset the working tree and index to the state of the local HEAD, but Homebrew will think it's updated and install anyway. "git reset --hard origin/master" will achieve the desired result. Should fix Homebrew/homebrew#7613. Signed-off-by: Jack Nagel <jacknagel@gmail.com>