Merge branch 'master' of ssh://git-annex.branchable.com
This commit is contained in:
commit
db2e0485ae
8 changed files with 179 additions and 1 deletions
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="Ilya_Shlyakhter"
|
||||
avatar="http://cdn.libravatar.org/avatar/1647044369aa7747829c38b9dcc84df0"
|
||||
subject="issue of pushing refs to annexed files but not info on how to fetch them"
|
||||
date="2021-03-01T16:46:56Z"
|
||||
content="""
|
||||
Just got burned by a (variation of) this issue, after coming back to git-annex after a break. This time, I did `git-annex-copy` the files to a remote, but forgot to `git-annex-sync` the new location information, so a new clone could not access the files. Maybe, a [pre-push hook](https://git-scm.com/docs/githooks#_pre_push) could be installed to print a warning (that can be turned off by a config setting), whenever you push refs to annexed files to a remote that has no (semi-)trusted location information for them? Basically, as a git user you get used to thinking that `git push` saves your work, and forgetting that it doesn't with `git-annex` can lead to data loss/inaccessibility.
|
||||
"""]]
|
17
doc/todo/unregisterurl_KEY_URL.mdwn
Normal file
17
doc/todo/unregisterurl_KEY_URL.mdwn
Normal file
|
@ -0,0 +1,17 @@
|
|||
```
|
||||
$> git annex --mumba 2>&1 | grep -e url
|
||||
addurl URL ... add urls to annex
|
||||
rmurl FILE URL ... record file is not available at url
|
||||
registerurl KEY URL registers an url for a key
|
||||
|
||||
$> git annex version | head -n 1
|
||||
git-annex version: 8.20210223-1~ndall+1
|
||||
|
||||
```
|
||||
|
||||
So ATM there is addurl/rmurl when operating on a FILE, and there is `registerurl` when operating on a KEY, but there seems to be no way to `unregisterurl` as to `rmurl` from a KEY. I have not found how could it be possibly done ATM without direct editing of .web files in the git-annex branch.
|
||||
|
||||
edit 1: well, instead of adding `unregisterurl` could be done by adding `--key` flag to `rmurl` I think.
|
||||
|
||||
[[!meta author=yoh]]
|
||||
[[!tag projects/dandi]]
|
|
@ -0,0 +1,20 @@
|
|||
[[!comment format=mdwn
|
||||
username="kyle"
|
||||
avatar="http://cdn.libravatar.org/avatar/7d6e85cde1422ad60607c87fa87c63f3"
|
||||
subject="setpresentkey 0"
|
||||
date="2021-02-25T21:18:48Z"
|
||||
content="""
|
||||
Fwiw adding `--key` to `rmurl` sounds nice to me, and, since it looks
|
||||
like RmUrl.hs already maps from file to key, I'd guess that be a
|
||||
natural addition.
|
||||
|
||||
> I have not found how could it be possibly done ATM without direct
|
||||
> editing of .web files in the git-annex branch.
|
||||
|
||||
I think you could use `setpresentkey`. So for a plain web URL:
|
||||
|
||||
```
|
||||
git annex setpresentkey $key 00000000-0000-0000-0000-000000000001 0
|
||||
```
|
||||
|
||||
"""]]
|
|
@ -0,0 +1,13 @@
|
|||
[[!comment format=mdwn
|
||||
username="kyle"
|
||||
avatar="http://cdn.libravatar.org/avatar/7d6e85cde1422ad60607c87fa87c63f3"
|
||||
subject="comment 2"
|
||||
date="2021-02-25T21:25:51Z"
|
||||
content="""
|
||||
I said:
|
||||
|
||||
> I think you could use setpresentkey.
|
||||
|
||||
Never mind, I don't think that's a good idea, since it's not operating
|
||||
on a particular URL and adjusting the log.web file.
|
||||
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue