filter-branch: use hash-object instead of mktag
[gitweb.git] / git-filter-branch.sh
index 956869b8e397affd189d99ad7bf0c2debea79f10..3365a3b866b510db5bf9ca20a0341c34c21b7a69 100755 (executable)
@@ -561,7 +561,7 @@ if [ "$filter_tag_name" ]; then
                                        }' \
                                    -e '/^-----BEGIN PGP SIGNATURE-----/q' \
                                    -e 'p' ) |
-                               git mktag) ||
+                               git hash-object -t tag -w --stdin) ||
                                die "Could not create new tag object for $ref"
                        if git cat-file tag "$ref" | \
                           sane_grep '^-----BEGIN PGP SIGNATURE-----' >/dev/null 2>&1