]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t9350-fast-export.sh
fast-export: fix exporting a tag and nothing else
[thirdparty/git.git] / t / t9350-fast-export.sh
index b4004e05c2a72c4daf95c4ce74b2145a9486efc4..d32ff41859e7e9d31adad144c2b2432c1cb55a33 100755 (executable)
@@ -53,6 +53,19 @@ test_expect_success 'fast-export | fast-import' '
 
 '
 
+test_expect_success 'fast-export ^muss^{commit} muss' '
+       git fast-export --tag-of-filtered-object=rewrite ^muss^{commit} muss >actual &&
+       cat >expected <<-EOF &&
+       tag muss
+       from $(git rev-parse --verify muss^{commit})
+       $(git cat-file tag muss | grep tagger)
+       data 9
+       valentin
+
+       EOF
+       test_cmp expected actual
+'
+
 test_expect_success 'fast-export master~2..master' '
 
        git fast-export master~2..master >actual &&