
In I5d9864d7, the need of 'correcting code' for branch refs was reduced but a bug was introduced. 'refs/heads' would get prepended onto 'HEAD' since the string did not start with 'refs/'. This resulted in an invalid URL when clicking the gitweb link in the branches page. Bug: Issue 4238 Change-Id: Ic27e1306bef04e225a2b349b180878ffec21b312