~sircmpwn/git.sr.ht#308: 
Tag assets persist after tag is deleted

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:

  1. In any git repo, create a new tag (e.g. test)

    git tag -a test -m "Test tag"
    git push --tags
    
    
  2. In the git.sr.ht web interface, navigate to the refs tab and select the 'test' tag

  3. Upload/attach a file to the ref using the upload form

  4. 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
    
    
  5. 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.

Status
RESOLVED FIXED
Submitter
~gpanders
Assigned to
No-one
Submitted
2 months ago
Updated
a month ago
Labels
No labels applied.