]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0610-reftable-basics.sh
Merge branch 'ps/reftable-repo-init-fix'
[thirdparty/git.git] / t / t0610-reftable-basics.sh
index 6a131e40b8157dc3fefea53704ad2377b7ce5c3a..686781192eb7c2d820e28393b6d0352db3f4822e 100755 (executable)
@@ -328,6 +328,18 @@ test_expect_success 'ref transaction: writes are synced' '
        EOF
 '
 
+test_expect_success 'ref transaction: empty transaction in empty repo' '
+       test_when_finished "rm -rf repo" &&
+       git init repo &&
+       test_commit -C repo --no-tag A &&
+       git -C repo update-ref -d refs/heads/main &&
+       test-tool -C repo ref-store main delete-refs REF_NO_DEREF msg HEAD &&
+       git -C repo update-ref --stdin <<-EOF
+       prepare
+       commit
+       EOF
+'
+
 test_expect_success 'pack-refs: compacts tables' '
        test_when_finished "rm -rf repo" &&
        git init repo &&