Delete tags and branches that start with hyphen

Fix https://github.com/gitlabhq/gitlabhq/issues/8208

We should add regression tests but I don't have the time.