X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9301-fast-export.sh;h=99857210555288cf5ca8f4fa4d1e94bfe557fbd2;hb=5dc1308562ab5991ecada68b06707709bea408c9;hp=20574354627f1e46b36a8eba0731138462482386;hpb=ed56049058284d7df2ede1ce5f494a2a9a109479;p=git.git diff --git a/t/t9301-fast-export.sh b/t/t9301-fast-export.sh index 205743546..998572105 100755 --- a/t/t9301-fast-export.sh +++ b/t/t9301-fast-export.sh @@ -239,4 +239,24 @@ test_expect_success 'fast-export | fast-import when master is tagged' ' ' +cat > tag-content << EOF +object $(git rev-parse HEAD) +type commit +tag rosten +EOF + +test_expect_success 'cope with tagger-less tags' ' + + TAG=$(git hash-object -t tag -w tag-content) && + git update-ref refs/tags/sonnenschein $TAG && + git fast-export -C -C --signed-tags=strip --all > output && + test $(grep -c "^tag " output) = 4 && + ! grep "Unspecified Tagger" output && + git fast-export -C -C --signed-tags=strip --all \ + --fake-missing-tagger > output && + test $(grep -c "^tag " output) = 4 && + grep "Unspecified Tagger" output + +' + test_done