print or die $!;
' ../basetag
+git cat-file tag test-dummy/1.0-1 >../raw-base
+
mv-ident () {
local f=$tmp/$1
if test -e $f; then
grep ": failed, emailed" ../tagupl/overall.log
}
+raw-mangled () {
+ git update-ref refs/tags/$tagname \
+ $(git hash-object -w -t tag ../tagobj-$ident)
+ t-tagupl-run-drs
+}
+
tagname=test-dummy/1.2
t-expect-fail E:'failed command: git fetch' \
t-tagupl-run-drs
cd ../$p
next-mangle badtagger
-git cat-file tag test-dummy/1.0-1 | perl -pe '
+perl -pe <../raw-base '
s/\+\d+$/xyz/ if m/^tagger /;
exit 0 if m/^$/;
' >../tagobj-$ident
echo >>../tagobj-$ident
cat ../basetag >>../tagobj-$ident
-git update-ref $tagname $(git hash-object -w -t tag ../tagobj-$ident)
+raw-mangled
+grep 'failed to fish tagger out of tag' ../tagupl/overall.log
cd ..
rm -rf $p