@ -18,7 +18,8 @@ test_expect_success 'setup simple repo' '
@@ -18,7 +18,8 @@ test_expect_success 'setup simple repo' '
git update-index --add --cacheinfo 160000,$fake_commit,link1 &&
git update-index --add --cacheinfo 160000,$fake_commit,link2 &&
git commit -m "add gitlink" &&
git tag -m "annotated tag" mytag
git tag -m "annotated tag" mytag &&
git tag -m "annotated tag with long message" longtag
'
test_expect_success 'export anonymized stream' '
@ -55,7 +56,8 @@ test_expect_success 'stream retains other as refname' '
@@ -55,7 +56,8 @@ test_expect_success 'stream retains other as refname' '
test_expect_success 'stream omits other refnames' '
! grep main stream &&
! grep mytag stream
! grep mytag stream &&
! grep longtag stream
'
test_expect_success 'stream omits identities' '
@ -118,9 +120,9 @@ test_expect_success 'identical gitlinks got identical oid' '
@@ -118,9 +120,9 @@ test_expect_success 'identical gitlinks got identical oid' '
test_line_count = 1 commits
'
test_expect_success 'tag points to branch tip' '
test_expect_success 'all tags point to branch tip' '
git rev-parse $other_branch >expect &&
git for-each-ref --format="%(*objectname)" | grep . >actual &&
git for-each-ref --format="%(*objectname)" | grep . | uniq >actual &&
test_cmp expect actual
'