git-gui: Correctly categorize tracking branches and heads.