summaryrefslogtreecommitdiff
path: root/tests/tests/tagupl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests/tagupl')
-rwxr-xr-xtests/tests/tagupl15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/tests/tagupl b/tests/tests/tagupl
index 0d72d3c..756a2ef 100755
--- a/tests/tests/tagupl
+++ b/tests/tests/tagupl
@@ -85,4 +85,19 @@ tagname=test-dummy/$v
expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
+# we do this now because we are about to generate a broken tag
+t-fscks
+
+next-mangle badtagger
+git cat-file tag test-dummy/1.0-1 | perl -pe '
+ 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)
+
+cd ..
+rm -rf $p
+
t-ok