Ensure that we don't have dupes in branches list

After converting an SVN repo to Git and importing it into GitLab a few of the branches were duped in the branches list. Doing `git branch -a` showed that my repo didn't have any duped branches so it seemed like the issue was in GitLab somewhere. Adding the `uniq` checked solved the issue for me.
Avoid multi-line chains of blocks.