Patch Set 2: I would prefer that you didn't submit this; No score

HEAD is now redundantly shown twice in the repository view, once immediately before the branches node and another time under symbolic references.

Please do proper error handling right from the beginning, printStackTrace() is a hack.