Merge remote-tracking branch 'origin/master' into httpproto

This commit is contained in:
Joey Hess 2024-07-28 14:24:15 -04:00
commit 9461793ffc
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,9 @@
[[!comment format=mdwn
username="m.risse@77eac2c22d673d5f10305c0bade738ad74055f92"
nickname="m.risse"
avatar="http://cdn.libravatar.org/avatar/59541f50d845e5f81aff06e88a38b9de"
subject="comment 3"
date="2024-07-26T11:42:49Z"
content="""
Maybe this issue was the same, or at least related to, this one: <https://git-annex.branchable.com/bugs/git_annex_checkpresentkey_removes_git_credentials/> ?
"""]]

View file

@ -0,0 +1,28 @@
### Please describe the problem.
We used a script calling out to `reregisterurl` to move URLs from datalad to regular web remote: [https://github.com/dandi/dandisets/pull/387/files](https://github.com/dandi/dandisets/pull/387/files).
Even after removing all urls, key is associated with the remote, and thus `annex find`able:
```shell
dandi@drogon:/mnt/backup/dandi/dandisets/000897$ git annex whereis sub-amadeus/sub-amadeus_ses-08152019_behavior+ecephys.nwb
whereis sub-amadeus/sub-amadeus_ses-08152019_behavior+ecephys.nwb (2 copies)
00000000-0000-0000-0000-000000000001 -- web
cf13d535-b47c-5df6-8590-0793cb08a90a -- datalad
web: https://api.dandiarchive.org/api/assets/d3a96834-ee80-4afa-b985-82066817272c/download/
web: https://dandiarchive.s3.amazonaws.com/blobs/a6e/c32/a6ec3274-ceeb-4d21-b091-1e991a512c7b?versionId=Vt7RKy0cgO1L82S7tqIQRQgNHBBZVtVh
ok
```
I think that git-annex should have completely dissociated that remote from the key whenever the very last url was reregistered.
### What version of git-annex are you using? On what operating system?
10.20240430-1~ndall+1
[[!meta author=yoh]]
[[!tag projects/dandi]]