summaryrefslogtreecommitdiff
path: root/doc/bugs/git_annex_initremote_needs_some___34__error_checking__34__.mdwn
blob: 6b57f8ce5f105438d71119890835c228e6c956ae (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
_git annex initremote_ without a complete command set still adds an entry to the uuid.log etc... and thus clutters up the state of the annex. I would not have expected this behaviour as a user.

_initremote_ should fail and not do anything if the commands that it has been given are incomplete or incorrect. I was initialising a few rsync repos and noticed that i ended up having mutiple rsync remotes with the same name but different uuid's. I know its hard if not impossible to remove these uuid's so I have just marked them as "dead" in my live annexes.

Here's a transcript of the problem

<pre>
x00:sandbox jtang$ mkdir atest
x00:sandbox jtang$ cd atest/
x00:atest jtang$ git init
Initialized empty Git repository in /Users/jtang/sandbox/atest/.git/
x00:atest jtang$ git annex init 
init  ok
(Recording state in git...)
x00:atest jtang$ git annex status
supported backends: SHA256 SHA1 SHA512 SHA224 SHA384 SHA256E SHA1E SHA512E SHA224E SHA384E WORM URL
supported remote types: git S3 bup directory rsync web hook
trusted repositories: 0
semitrusted repositories: 2
	00000000-0000-0000-0000-000000000001 -- web
 	cbb58e1c-d737-11e1-b682-83239d5ff2e0 -- here
untrusted repositories: 0
dead repositories: 0
transfers in progress: none
available local disk space: 185 gigabytes (+1 megabyte reserved)
local annex keys: 0
local annex size: 0 bytes
known annex keys: 0
known annex size: 0 bytes
bloom filter size: 16 mebibytes (0% full)
backend usage: 
x00:atest jtang$ git annex initremote foo
git-annex: Specify the type of remote with type=
x00:atest jtang$ git annex initremote foo type=rsync
(Recording state in git...)
initremote foo git-annex: Specify encryption=key or encryption=none or encryption=shared
x00:atest jtang$ git annex initremote foo type=rsync
(Recording state in git...)
initremote foo git-annex: Specify encryption=key or encryption=none or encryption=shared
x00:atest jtang$ git annex status
supported backends: SHA256 SHA1 SHA512 SHA224 SHA384 SHA256E SHA1E SHA512E SHA224E SHA384E WORM URL
supported remote types: git S3 bup directory rsync web hook
trusted repositories: (Recording state in git...)
0
semitrusted repositories: 5
	00000000-0000-0000-0000-000000000001 -- web
 	cbb58e1c-d737-11e1-b682-83239d5ff2e0 -- here
 	d3adfcd0-d737-11e1-b15b-b7032388f8aa -- foo
 	d6d8e1e0-d737-11e1-956a-0b3d3451226a -- foo
 	d78d795c-d737-11e1-ac98-4fe3d6fdfd54 -- foo
untrusted repositories: 0
dead repositories: 0
transfers in progress: none
available local disk space: 185 gigabytes (+1 megabyte reserved)
local annex keys: 0
local annex size: 0 bytes
known annex keys: 0
known annex size: 0 bytes
bloom filter size: 16 mebibytes (0% full)
backend usage: 
x00:atest jtang$ 
</pre>

> Indeed, I broke that in June by making it record the name in a much too
> early stage. Now fixed. [[done]] --[[Joey]]