Fix git-for-each-refs broken for tags