blob: c7de2eb6db7e584922691aa7e44a0615115d403f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
[[!comment format=mdwn
username="https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4"
subject="seems just ignore errors while adding urls to "unsupported" urls"
date="2015-08-19T21:59:09Z"
content="""
actually situation is somewhat similar on linux as well in a sense that annex manages to addurl a file using e.g. file:///./data url (not sure even if legit) without puking but contains wrong content (empty):
[[!format sh \"\"\"
% mkdir XXX
% cd XXX
% git init; git annex init
Initialized empty Git repository in /tmp/XXX/.git/
init ok
(recording state in git...)
% echo 123 > data
% git annex addurl --file=annexed file:///./data
addurl annexed (downloading file:///./data ...)
ok
(recording state in git...)
% cat annexed
% git annex drop annexed
drop annexed (checking file:///./data...) (unsafe)
Could only verify the existence of 0 out of 1 necessary copies
Rather than dropping this file, try using: git annex move
(Use --force to override this check, or adjust numcopies.)
failed
git-annex: drop: 1 failed
% git annex addurl --file=annexedfull file://$PWD/data
addurl annexedfull (downloading file:///tmp/XXX/data ...)
######################################################################## 100.0%
ok
(recording state in git...)
% cat annexedfull
123
% git annex drop annexedfull
drop annexedfull (checking file:///tmp/XXX/data...) ok
(recording state in git...)
% annex version
zsh: command not found: annex
% git annex version
git-annex version: 5.20150812-2
\"\"\"]]
"""]]
|