branch: fix shortening of non-remote symrefs