git-svn: support for git-svn propset
[gitweb.git] / t / t5516-fetch-push.sh
index 2b69afaf376daf12cf37418c32017ffcab66b87f..f4da20aa9bf7df1b2ab1fda207b70e1913277603 100755 (executable)
@@ -1278,6 +1278,19 @@ EOF
        git push --no-thin --receive-pack="$rcvpck" no-thin/.git refs/heads/master:refs/heads/foo
 '
 
+test_expect_success 'pushing a tag pushes the tagged object' '
+       rm -rf dst.git &&
+       blob=$(echo unreferenced | git hash-object -w --stdin) &&
+       git tag -m foo tag-of-blob $blob &&
+       git init --bare dst.git &&
+       git push dst.git tag-of-blob &&
+       # the receiving index-pack should have noticed
+       # any problems, but we double check
+       echo unreferenced >expect &&
+       git --git-dir=dst.git cat-file blob tag-of-blob >actual &&
+       test_cmp expect actual
+'
+
 test_expect_success 'push into bare respects core.logallrefupdates' '
        rm -rf dst.git &&
        git init --bare dst.git &&