Fix log view to handle repositories containing a file named HEAD