diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-06 18:04:33 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-07-07 09:54:19 +0100 |
commit | 445b069db22353d0392c20c8f14ade9cdba24c25 (patch) | |
tree | ad03046f91877c01e1fb01b8e3366ec837b4e84a | |
parent | 04814bd344196e4c5e3704b1ab0fc89a48400578 (diff) |
test suite: tagupl: Test a really broken tag
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | tests/tests/tagupl | 15 |
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 |