If I upload an asset to a tag (under
refs) and then that tag is deleted (either explicitly or if the tag gets moved and pushed with
--force), the assets seem to persist and cannot be reuploaded (when I try it says "A file by this name was already uploaded").
Steps to reproduce:
In any git repo, create a new tag (e.g.
git tag -a test -m "Test tag" git push --tags
In the git.sr.ht web interface, navigate to the
refs tab and select the 'test' tag
Upload/attach a file to the ref using the upload form
Move the tag to a different ref and force push it to the remote
git tag -a test -m "Test tag" -f HEAD^ git push --tags --force
Repeat steps 2-3 (ensure the same file is uploaded from step 3). Step 3 fails with "A file by this name was already uploaded".
As far as I can tell, there is no way to access the attachments from the original ref (before it was moved), so they cannot be deleted.